diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 248a2be63f..05215e2c26 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: lts/* - uses: actions/cache@v4 with: path: ~/.npm @@ -42,11 +42,14 @@ jobs: NodeJS: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x, 22.x, lts/*] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: ${{ matrix.node-version }} - uses: actions/cache@v4 with: path: ~/.npm @@ -64,7 +67,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: lts/* - uses: oven-sh/setup-bun@v1 with: bun-version: latest