diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9a7a62e..b89a95d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,18 +7,17 @@ on: branches: [ "main" ] jobs: - build: - runs-on: ubuntu-latest + build_and_test: + name: Build and Test (Node ${{ matrix.node-version }}) + runs-on: ubuntu-slim strategy: matrix: - node-version: [18.x, 20.x, 22.x] + node-version: [22.x, 24.x, 26.x] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm install - - name: Run ci_test - run: npm run ci_test + - run: npm ci + - run: npm run ci_test diff --git a/package.json b/package.json index 660af4c..1919a0a 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,6 @@ "nyc": "^17.1.0" }, "engines": { - "node": ">=18" + "node": ">=22" } }