Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
hotate29 committed Oct 2, 2024
1 parent c2058ff commit 5ba7bea
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5ba7bea

Please sign in to comment.