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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a531c6d..f4b8b13 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 @@ -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,44 @@ 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: + fail-fast: false + 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: Install test dependencies + run: npm ci + + - name: Download build artifact + uses: actions/download-artifact@v4 + with: + name: package + path: . + + - name: Extract build package + run: tar -xzf cldn-ip-0.0.0-dev.tgz --strip-components=1 -C . --overwrite + + - name: Test + run: npm run test + publish: name: Publish needs: build @@ -59,7 +94,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