Skip to content

Commit

Permalink
ci: use x64 arch node 10.x for macos-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed May 7, 2024
2 parents 72f2517 + 08730b2 commit 1cb4713
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -139,10 +139,21 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
id: calculate_architecture
with:
result-encoding: string
script: |
if ('${{ matrix.os }}' === 'macos-latest' && '${{ matrix['node-version'] }}' === '10.x') {
return "x64"
} else {
return ''
}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
architecture: ${{ steps.calculate_architecture.outputs.result }}
cache: "yarn"
# Install old `jest` version and deps for legacy node versions
- run: |
Expand Down

0 comments on commit 1cb4713

Please sign in to comment.