Skip to content

Commit

Permalink
(一部を除き)CIのworkflowをNode 20を使ったものに更新した。
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
hotate29 committed Mar 2, 2024
1 parent 37e6478 commit 521b344
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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/[email protected]
uses: peaceiris/[email protected] # https://github.com/peaceiris/actions-mdbook/pull/500 のマージを待つ
with:
mdbook-version: "latest"

Expand Down

0 comments on commit 521b344

Please sign in to comment.