Skip to content

Commit

Permalink
explicitly use node 16 for runners
Browse files Browse the repository at this point in the history
The default node version for the runners was changed to 18, which
is not compatible with our current setup. Unfortunately, this change
was not properly announced, which is why we did not notice it. There is
only a GH issue about it at the moment.
actions/runner-images#7002

In order to fix this, we need to explicitly set the node version to 16
for all our workflows that use node/pnpm.
  • Loading branch information
ardelato committed Feb 18, 2023
1 parent 386207c commit 66f7667
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
uses: actions/checkout@v2
with:
token: ${{ secrets.ACTION_PAT }}

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Setup and cache pnpm
uses: ./.github/actions/pnpm-setup
- name: Install workspaces
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: 16

- name: Setup and cache pnpm
uses: ./.github/actions/pnpm-setup
- name: Install workspaces
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
uses: actions/checkout@v2
with:
token: ${{ secrets.ACTION_PAT }}

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Setup and cache pnpm
uses: ./.github/actions/pnpm-setup
- name: Install workspaces
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Start strapi server
run: cd backend && docker-compose up -d
env:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/nextjs_bundle_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Setup and cache pnpm
uses: ./.github/actions/pnpm-setup

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Setup and cache pnpm
uses: ./.github/actions/pnpm-setup
- name: Install workspaces
Expand Down

0 comments on commit 66f7667

Please sign in to comment.