forked from kenkoooo/AtCoderProblems
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(一部を除き)CIのworkflowをNode 20を使ったものに更新した。
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
Showing
1 changed file
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
uses: peaceiris/[email protected] # https://github.com/peaceiris/actions-mdbook/pull/500 のマージを待つ | ||
with: | ||
mdbook-version: "latest" | ||
|
||
|