diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f4ba87c7..ea619bd01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,19 +18,35 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 24 cache: npm - run: npm ci - run: npm run check - run: npm run build + + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [18, 24] + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: npm + + - run: npm ci - run: npm test publish: runs-on: ubuntu-latest if: github.event_name == 'release' environment: release - needs: build + needs: [build, test] permissions: contents: read @@ -40,7 +56,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 24 cache: npm registry-url: 'https://registry.npmjs.org'