From a573af5aef8ce2d90309b5030aa435ca5e926fe9 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Tue, 30 Apr 2024 16:42:14 -0400 Subject: [PATCH] ci: use node 21 (#9327) needed because of https://github.com/Automattic/node-canvas/issues/2377 --- .github/workflows/check-toc.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/release-docs-and-schema.yml | 4 ++-- .github/workflows/test-docs.yml | 2 +- .github/workflows/test.yml | 12 +++++++----- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check-toc.yml b/.github/workflows/check-toc.yml index 59a093e6fb..f0a86f775b 100644 --- a/.github/workflows/check-toc.yml +++ b/.github/workflows/check-toc.yml @@ -24,7 +24,7 @@ jobs: uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: latest + node-version: 21 - name: Install Node dependencies run: yarn --frozen-lockfile diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c90dfafe09..911fa813c1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -19,7 +19,7 @@ jobs: uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: latest + node-version: 21 - name: Install Node dependencies run: yarn --frozen-lockfile diff --git a/.github/workflows/release-docs-and-schema.yml b/.github/workflows/release-docs-and-schema.yml index 3ffbd20e82..183c00e0c1 100644 --- a/.github/workflows/release-docs-and-schema.yml +++ b/.github/workflows/release-docs-and-schema.yml @@ -26,7 +26,7 @@ jobs: uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: latest + node-version: 21 - name: Install Node dependencies run: yarn --frozen-lockfile @@ -62,7 +62,7 @@ jobs: uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: latest + node-version: 21 - name: Setup Pages uses: actions/configure-pages@v5 diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml index a8a6ab746d..bdb107b208 100644 --- a/.github/workflows/test-docs.yml +++ b/.github/workflows/test-docs.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: latest + node-version: 21 - name: Install Node dependencies run: yarn --frozen-lockfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 96d73c5130..ea02006413 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: latest + node-version: 21 - name: Install Node dependencies run: yarn --frozen-lockfile @@ -44,7 +44,7 @@ jobs: uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: latest + node-version: 21 - name: Install Node dependencies run: yarn --frozen-lockfile @@ -74,10 +74,12 @@ jobs: test-cli: name: CLI - runs-on: ${{ matrix.os }} + strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-13, windows-latest] + + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -86,7 +88,7 @@ jobs: uses: actions/setup-node@v4 with: cache: 'yarn' - node-version: latest + node-version: 21 - name: Install Node dependencies run: yarn --frozen-lockfile