Skip to content

Commit 5ba7bea

Browse files
committed
a
1 parent c2058ff commit 5ba7bea

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/ci.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ env:
1212
RUST_TEST_THREADS: 1
1313
SQL_URL: postgres://db_user:db_pass@localhost:5432/test_db
1414

15+
# Node 17でOpenSSLがデフォルトでMD4ハッシュを提供しなくなり、
16+
# これに依存していたwebpackに依存するreact-scripts 4.x系でのビルドができなくなってしまった。
17+
# --openssl-legacy-providerをオプションとして渡すことで、Node 17以降でもビルドができる。
18+
# react-scripts 4.x系から移行したら、このオプションは不要になる。
19+
NODE_OPTIONS: --openssl-legacy-provider
20+
1521
jobs:
1622
backend_test:
1723
name: Run backend tests
@@ -37,7 +43,7 @@ jobs:
3743
- 5432:5432
3844

3945
steps:
40-
- uses: actions/checkout@v4.1.1
46+
- uses: actions/checkout@v4.2.0
4147

4248
- name: Cache dependencies
4349
uses: Swatinem/[email protected]
@@ -70,15 +76,15 @@ jobs:
7076
working-directory: ./atcoder-problems-frontend
7177

7278
steps:
73-
- uses: actions/checkout@v4.1.1
79+
- uses: actions/checkout@v4.2.0
7480

7581
- name: Use Node.js
76-
uses: actions/[email protected].2
82+
uses: actions/[email protected].4
7783
with:
7884
node-version: 20
7985

8086
- name: Cache dependencies
81-
uses: actions/[email protected].1
87+
uses: actions/[email protected].2
8288
with:
8389
path: |
8490
~/.cache/Cypress
@@ -93,12 +99,8 @@ jobs:
9399
with:
94100
mdbook-version: "latest"
95101

96-
# Node 17でOpenSSLがデフォルトでMD4ハッシュを提供しなくなり、
97-
# これに依存していたwebpackに依存するreact-scripts 4.x系でのビルドができなくなってしまった。
98-
# --openssl-legacy-providerをオプションとして渡すことで、Node 17以降でもビルドができる。
99-
# react-scripts 4.x系から移行したら、このオプションは不要になる。
100102
- name: build
101-
run: export NODE_OPTIONS=--openssl-legacy-provider && yarn build
103+
run: yarn build
102104
- name: test
103105
run: yarn test
104106
- name: lint

0 commit comments

Comments
 (0)