From 521b34485252cbd530f2a539be2b99ee2067021a Mon Sep 17 00:00:00 2001 From: hotate29 Date: Sun, 3 Mar 2024 00:51:48 +0900 Subject: [PATCH] =?UTF-8?q?(=E4=B8=80=E9=83=A8=E3=82=92=E9=99=A4=E3=81=8D)?= =?UTF-8?q?CI=E3=81=AEworkflow=E3=82=92Node=2020=E3=82=92=E4=BD=BF?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E3=82=82=E3=81=AE=E3=81=AB=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit peaceiris/actions-mdbookはまだ対応したバージョンがリリースされていないため、対応PR (https://github.com/peaceiris/actions-mdbook/pull/500)がマージされるまで保留。 Node 16は2023年9月11にEOLとなり、GitHub ActionsではNode 20の利用が推奨されている。 https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ --- .github/workflows/ci.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7256a81b3..8fe7f128c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,10 +37,10 @@ jobs: - 5432:5432 steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4.1.1 - name: Cache dependencies - uses: Swatinem/rust-cache@v2.2.0 + uses: Swatinem/rust-cache@v2.7.3 with: workspaces: atcoder-problems-backend -> target @@ -70,26 +70,27 @@ jobs: working-directory: ./atcoder-problems-frontend steps: - - uses: actions/checkout@v3.3.0 + - uses: actions/checkout@v4.1.1 - name: Use Node.js - uses: actions/setup-node@v3.6.0 + uses: actions/setup-node@v4.0.2 with: - node-version: 16 + node-version: 16 # react-scripts 4.x系が対応していないため、Node 16を使う + cache: yarn + cache-dependency-path: ./atcoder-problems-frontend/yarn.lock - - name: Cache node_modules - uses: actions/cache@v3.2.3 + - name: Cache Cypress Binary + uses: actions/cache@v4.0.1 with: path: | ~/.cache/Cypress - ./atcoder-problems-frontend/node_modules - key: ${{ runner.os }}-cargo-${{ hashFiles('atcoder-problems-frontend/yarn.lock') }} + key: ${{ runner.os }}-Cypress-${{ hashFiles('atcoder-problems-frontend/yarn.lock') }} - name: Install dependencies run: yarn - name: Setup mdBook - uses: peaceiris/actions-mdbook@v1.2.0 + uses: peaceiris/actions-mdbook@v1.2.0 # https://github.com/peaceiris/actions-mdbook/pull/500 のマージを待つ with: mdbook-version: "latest"