diff --git a/.github/workflows/app-tests.yaml b/.github/workflows/app-tests.yaml index b139c113d31..d28e417052b 100644 --- a/.github/workflows/app-tests.yaml +++ b/.github/workflows/app-tests.yaml @@ -35,6 +35,7 @@ jobs: - uses: actions/setup-node@v4 with: + node-version-file: '.nvmrc' cache: 'yarn' cache-dependency-path: | yarn.lock diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index 4ce75fba49f..bf705c0bc6f 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -25,6 +25,7 @@ jobs: - run: npm i -g corepack && corepack enable - uses: actions/setup-node@v4 with: + node-version-file: '.nvmrc' cache: 'yarn' - run: yarn --immutable - run: yarn ci diff --git a/.github/workflows/dist-files-unbuilt.yaml b/.github/workflows/dist-files-unbuilt.yaml index cd76bdaf489..f1ce842f214 100644 --- a/.github/workflows/dist-files-unbuilt.yaml +++ b/.github/workflows/dist-files-unbuilt.yaml @@ -24,6 +24,7 @@ jobs: - run: npm i -g corepack && corepack enable - uses: actions/setup-node@v4 with: + node-version-file: '.nvmrc' cache: 'yarn' cache-dependency-path: | yarn.lock diff --git a/.github/workflows/release-on-npm.yaml b/.github/workflows/release-on-npm.yaml index 11fc7d79f2f..00aba6f76b5 100644 --- a/.github/workflows/release-on-npm.yaml +++ b/.github/workflows/release-on-npm.yaml @@ -24,6 +24,7 @@ jobs: - run: npm i -g corepack && corepack enable - uses: actions/setup-node@v4 with: + node-version-file: '.nvmrc' cache: 'yarn' cache-dependency-path: | yarn.lock diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 2d0d8b52b95..facda11d330 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -87,11 +87,16 @@ jobs: js: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [ '18.x', '20.x', '22.x', '24.x' ] steps: - uses: actions/checkout@v4 - run: npm i -g corepack && corepack enable - uses: actions/setup-node@v4 with: + node-version: ${{ matrix.node-version }} cache: 'yarn' cache-dependency-path: | yarn.lock diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000000..059080291f9 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22.6