From 0aa20840d4a61e4b143eb506ba666ed70dc0615b Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 13 Aug 2024 14:53:23 +0300 Subject: [PATCH] ci: fix --- .github/workflows/test.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4b19813..7c3e533 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 21.x] + node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x] polling: ["false", "200"] exclude: - os: macos-latest @@ -57,10 +57,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' || '${{ matrix['node-version'] }}' === '12.x' || '${{ matrix['node-version'] }}' === '14.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" - run: yarn --frozen-lockfile - run: yarn test:coverage --report lcovonly