From ce2df3c2962e2ccb0a5d245aa5260ecc2acdf425 Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Sat, 28 Oct 2023 13:32:56 +0900 Subject: [PATCH] Fix GitHub Actions test workflow against outdated Node.js version --- .github/workflows/github-release.yml | 6 +++--- .github/workflows/test-win.yml | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index c8aa176d..8199713e 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -15,7 +15,7 @@ jobs: github-release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'push' - uses: marp-team/actions@v1 @@ -37,9 +37,9 @@ jobs: - macOS-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: Install yarn diff --git a/.github/workflows/test-win.yml b/.github/workflows/test-win.yml index d0de9c49..2cfdf930 100644 --- a/.github/workflows/test-win.yml +++ b/.github/workflows/test-win.yml @@ -21,15 +21,18 @@ jobs: node-version: - '^16.18.1' - '18.18.0' + include: + - node-version: '^16.18.1' + force: true steps: # - name: Output concurrency group # run: echo "${{ github.workflow }}-${{ (github.ref_name == 'main' && github.run_id) || format('{0}-{1}', github.actor, github.head_ref || github.ref_name) }}" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} @@ -50,7 +53,7 @@ jobs: yarn_cache-${{ runner.os }}- - name: Install dependencies with yarn - run: yarn install --frozen-lockfile + run: yarn install --frozen-lockfile ${{ matrix.force && '--ignore-engines' || '' }} # Retry tests up to 3 times due to flaky tests on Windows CI # https://stackoverflow.com/a/59365905