From f941fd896e7696328b6bfacfe4b28f17f75aa636 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 24 Oct 2023 15:45:03 +0100 Subject: [PATCH] Change latest node ver to '*' (#3831) * Change latest node ver to '*' This uses the latest cached version rather than fetching the latest released version so we don't reply on (and hammer) node's download servers for the very latest version before the actions runners get updated. We'll still stay current, just not quite so aggressively current. * Fix artifact uploading hopefully * Hopefully make job name 'node latest' --- .github/workflows/tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index db33f20df00..261bf71ad14 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,18 +12,19 @@ env: ENABLE_COVERAGE: ${{ github.event_name != 'merge_group' }} jobs: jest: - name: "Jest [${{ matrix.specs }}] (Node ${{ matrix.node }})" + name: "Jest [${{ matrix.specs }}] (Node ${{ matrix.node == '*' && 'latest' || matrix.node }})" runs-on: ubuntu-latest timeout-minutes: 10 strategy: matrix: specs: [integ, unit] - node: [18, latest] + node: [18, "*"] steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node + id: setupNode uses: actions/setup-node@v3 with: cache: "yarn" @@ -51,7 +52,7 @@ jobs: - name: Move coverage files into place if: env.ENABLE_COVERAGE == 'true' - run: mv coverage/lcov.info coverage/${{ matrix.node }}-${{ matrix.specs }}.lcov.info + run: mv coverage/lcov.info coverage/${{ steps.setupNode.output.node-version }}-${{ matrix.specs }}.lcov.info - name: Upload Artifact if: env.ENABLE_COVERAGE == 'true'