-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
9 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 |
---|---|---|
|
@@ -12,6 +12,12 @@ env: | |
RUST_TEST_THREADS: 1 | ||
SQL_URL: postgres://db_user:db_pass@localhost:5432/test_db | ||
|
||
# Node 17でOpenSSLがデフォルトでMD4ハッシュを提供しなくなり、 | ||
# これに依存していたwebpackに依存するreact-scripts 4.x系でのビルドができなくなってしまった。 | ||
# --openssl-legacy-providerをオプションとして渡すことで、Node 17以降でもビルドができる。 | ||
# react-scripts 4.x系から移行したら、このオプションは不要になる。 | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
|
||
jobs: | ||
backend_test: | ||
name: Run backend tests | ||
|
@@ -37,7 +43,7 @@ jobs: | |
- 5432:5432 | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
- uses: actions/checkout@v4.2.0 | ||
|
||
- name: Cache dependencies | ||
uses: Swatinem/[email protected] | ||
|
@@ -70,15 +76,15 @@ jobs: | |
working-directory: ./atcoder-problems-frontend | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
- uses: actions/checkout@v4.2.0 | ||
|
||
- name: Use Node.js | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Cache dependencies | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
with: | ||
path: | | ||
~/.cache/Cypress | ||
|
@@ -93,12 +99,8 @@ jobs: | |
with: | ||
mdbook-version: "latest" | ||
|
||
# Node 17でOpenSSLがデフォルトでMD4ハッシュを提供しなくなり、 | ||
# これに依存していたwebpackに依存するreact-scripts 4.x系でのビルドができなくなってしまった。 | ||
# --openssl-legacy-providerをオプションとして渡すことで、Node 17以降でもビルドができる。 | ||
# react-scripts 4.x系から移行したら、このオプションは不要になる。 | ||
- name: build | ||
run: export NODE_OPTIONS=--openssl-legacy-provider && yarn build | ||
run: yarn build | ||
- name: test | ||
run: yarn test | ||
- name: lint | ||
|