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
fi3ework committed Apr 26, 2024
1 parent c586c7b commit 08730b2
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 08730b2

Please sign in to comment.