From 5fb0cd4fead747080b36bec0e2c3a2a49c7c99a0 Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Tue, 15 Jul 2025 10:46:40 +0300 Subject: [PATCH 1/5] Removed Dependabot `reviewers` in favour of CODEOWNERS --- .github/dependabot.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 0840537..51ebe93 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -6,8 +6,6 @@ updates: interval: weekly day: monday time: "06:00" - reviewers: - - cloudnode-pro/development - package-ecosystem: github-actions directory: / @@ -15,5 +13,3 @@ updates: interval: weekly day: monday time: "06:00" - reviewers: - - cloudnode-pro/development From 9a61eb511c4834bf9b682f78837b7b410dc973d9 Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Tue, 15 Jul 2025 10:47:44 +0300 Subject: [PATCH 2/5] Updated Node.js version in CI to v22 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a531c6d..a0945a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 registry-url: https://registry.npmjs.org/ cache: npm @@ -59,7 +59,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 registry-url: https://registry.npmjs.org/ cache: npm From ca4c03e2294c14284218466967d2fbf2af1d678d Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Tue, 15 Jul 2025 10:55:47 +0300 Subject: [PATCH 3/5] =?UTF-8?q?Separate=20tests=20step=20with=20matrix=20N?= =?UTF-8?q?ode.js=20v20=E2=80=93v24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 43 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0945a9..973a919 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,9 +32,6 @@ jobs: - name: Build run: npm run build - - name: Test - run: npm run test - - name: Pack run: npm pack @@ -43,6 +40,46 @@ jobs: with: name: package path: cldn-ip-0.0.0-dev.tgz + + test: + name: Test on Node.js ${{ matrix.node }} + runs-on: ubuntu-latest + needs: build + strategy: + matrix: + node: [20, 22, 24] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + registry-url: https://registry.npmjs.org/ + cache: npm + + - name: Install latest NPM + run: npm i -g npm@latest + + - name: Download build artifact + uses: actions/download-artifact@v4 + with: + name: package + path: ./package + + - name: Extract build package + working-directory: ./package + run: tar -xzf cldn-ip-0.0.0-dev.tgz + + - name: Install test dependencies + working-directory: ./package/package + run: npm ci + + - name: Test + working-directory: ./package/package + run: npm run test + publish: name: Publish needs: build From 940b11535059442f66d2102849dcd68fe14c103e Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Tue, 15 Jul 2025 11:02:07 +0300 Subject: [PATCH 4/5] Disable `fail-fast` on tests CI --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 973a919..bb2f2fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,7 @@ jobs: runs-on: ubuntu-latest needs: build strategy: + fail-fast: false matrix: node: [20, 22, 24] steps: From 543056edb0d2005b4a5dcef0e5ce7899596310a7 Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Tue, 15 Jul 2025 11:06:53 +0300 Subject: [PATCH 5/5] Extract build artifact in current directory --- .github/workflows/ci.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb2f2fc..f4b8b13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,22 +63,19 @@ jobs: - name: Install latest NPM run: npm i -g npm@latest + - name: Install test dependencies + run: npm ci + - name: Download build artifact uses: actions/download-artifact@v4 with: name: package - path: ./package + path: . - name: Extract build package - working-directory: ./package - run: tar -xzf cldn-ip-0.0.0-dev.tgz - - - name: Install test dependencies - working-directory: ./package/package - run: npm ci + run: tar -xzf cldn-ip-0.0.0-dev.tgz --strip-components=1 -C . --overwrite - name: Test - working-directory: ./package/package run: npm run test publish: