diff --git a/.github/workflows/lint-js-and-ruby.yml b/.github/workflows/lint-js-and-ruby.yml index 097a45f13e..cd119c1534 100644 --- a/.github/workflows/lint-js-and-ruby.yml +++ b/.github/workflows/lint-js-and-ruby.yml @@ -54,11 +54,8 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 22 - # TODO: Re-enable cache when Node.js 22 V8 bug is fixed - # Disable cache for Node 22 due to V8 bug in 22.21.0 - # Track: https://github.com/nodejs/node/issues/56010 - cache: '' + node-version: 20 + cache: 'yarn' cache-dependency-path: '**/yarn.lock' - name: Print system information run: | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 874439614b..ff65fae581 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,7 +45,7 @@ jobs: include: # Always run: Latest versions (fast feedback on PRs) - ruby-version: '3.4' - node-version: '22' + node-version: '20' dependency-level: 'latest' # Master only: Minimum supported versions (full coverage) - ruby-version: '3.2' @@ -69,9 +69,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - # Disable cache for Node 22 due to V8 bug in 22.21.0 - # https://github.com/nodejs/node/issues/56010 - cache: ${{ matrix.node-version != '22' && 'yarn' || '' }} + cache: 'yarn' cache-dependency-path: '**/yarn.lock' - name: Print system information run: | @@ -150,9 +148,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - # Disable cache for Node 22 due to V8 bug in 22.21.0 - # https://github.com/nodejs/node/issues/56010 - cache: ${{ matrix.node-version != '22' && 'yarn' || '' }} + cache: 'yarn' cache-dependency-path: '**/yarn.lock' - name: Print system information run: | diff --git a/.github/workflows/package-js-tests.yml b/.github/workflows/package-js-tests.yml index 73e1628123..e630e8afee 100644 --- a/.github/workflows/package-js-tests.yml +++ b/.github/workflows/package-js-tests.yml @@ -47,11 +47,7 @@ jobs: (github.ref == 'refs/heads/master' || needs.detect-changes.outputs.run_js_tests == 'true') strategy: matrix: - include: - # Always run: Latest Node version (fast feedback on PRs) - - node-version: '22' - # Master only: Minimum supported Node version (full coverage) - - node-version: '20' + node-version: ['20'] runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -61,10 +57,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - # TODO: Re-enable cache when Node.js 22 V8 bug is fixed - # Disable cache for Node 22 due to V8 bug in 22.21.0 - # Track: https://github.com/nodejs/node/issues/56010 - cache: ${{ matrix.node-version != '22' && 'yarn' || '' }} + cache: 'yarn' cache-dependency-path: '**/yarn.lock' - name: Print system information run: | @@ -74,11 +67,10 @@ jobs: echo "Node version: "; node -v echo "Yarn version: "; yarn --version - name: run conversion script - if: matrix.node-version == '20' run: script/convert - name: Install Node modules with Yarn for renderer package run: | - yarn install --no-progress --no-emoji ${{ matrix.node-version == '22' && '--frozen-lockfile' || '' }} + yarn install --no-progress --no-emoji sudo yarn global add yalc - name: Build Renderer package run: yarn build