From bb81adb1de88adeab159d4accb92af5e1dfcbedd Mon Sep 17 00:00:00 2001 From: comavius <123385705+comavius@users.noreply.github.com> Date: Sun, 16 Jun 2024 11:57:49 +0900 Subject: [PATCH 1/4] Create node.js.yml --- .github/workflows/node.js.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..4407b92 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + pull_request: + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: cd ./h24s_25 && npm ci + - run: cd ./h24s_25 && npm run build --if-present + From 65ecb9cf5a1fff9c3a39fc562096396da76b84bf Mon Sep 17 00:00:00 2001 From: comavius Date: Sun, 16 Jun 2024 12:03:37 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=9A=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/node.js.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 4407b92..1af12f0 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: @@ -24,6 +24,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: cd ./h24s_25 && npm ci - - run: cd ./h24s_25 && npm run build --if-present + - run: cd h24s_25 + - run: npm ci + - run: npm run build --if-present From 241cb0289a81418120364c7d4d5be5cba7252793 Mon Sep 17 00:00:00 2001 From: comavius Date: Sun, 16 Jun 2024 12:10:28 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=9A=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 1af12f0..75420b8 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -26,5 +26,5 @@ jobs: cache: 'npm' - run: cd h24s_25 - run: npm ci - - run: npm run build --if-present + - run: npm run build From 31f0a88e57aafcb55ed1dd27541d07d287701b23 Mon Sep 17 00:00:00 2001 From: comavius Date: Sun, 16 Jun 2024 12:14:21 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=9A=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/node.js.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 75420b8..c5d6c3b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -24,7 +24,6 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: cd h24s_25 - - run: npm ci - - run: npm run build + - run: cd ./h24s_25 && npm ci + - run: cd ./h24s_25 && npm run build