|
8 | 8 | env: |
9 | 9 | CARGO_TERM_COLOR: always |
10 | 10 | RUST_BACKTRACE: 1 |
11 | | - RUST_TEST_THREADS: 1 |
12 | 11 | CARGO_PROFILE_TEST_DEBUG: 0 |
| 12 | + RUST_TEST_THREADS: 1 |
13 | 13 | SQL_URL: postgres://db_user:db_pass@localhost:5432/test_db |
14 | 14 |
|
15 | 15 | jobs: |
@@ -37,10 +37,10 @@ jobs: |
37 | 37 | - 5432:5432 |
38 | 38 |
|
39 | 39 | steps: |
40 | | - - uses: actions/checkout@v3.3.0 |
| 40 | + - uses: actions/checkout@v4.1.1 |
41 | 41 |
|
42 | 42 | - name: Cache dependencies |
43 | | - uses: Swatinem/rust-cache@v2.2.0 |
| 43 | + uses: Swatinem/rust-cache@v2.7.3 |
44 | 44 | with: |
45 | 45 | workspaces: atcoder-problems-backend -> target |
46 | 46 |
|
@@ -70,31 +70,35 @@ jobs: |
70 | 70 | working-directory: ./atcoder-problems-frontend |
71 | 71 |
|
72 | 72 | steps: |
73 | | - - uses: actions/checkout@v3.3.0 |
| 73 | + - uses: actions/checkout@v4.1.1 |
74 | 74 |
|
75 | 75 | - name: Use Node.js |
76 | | - uses: actions/setup-node@v3.6.0 |
| 76 | + uses: actions/setup-node@v4.0.2 |
77 | 77 | with: |
78 | | - node-version: 16 |
| 78 | + node-version: 20 |
79 | 79 |
|
80 | | - - name: Cache node_modules |
81 | | - uses: actions/cache@v3.2.3 |
| 80 | + - name: Cache dependencies |
| 81 | + uses: actions/cache@v4.0.1 |
82 | 82 | with: |
83 | 83 | path: | |
84 | 84 | ~/.cache/Cypress |
85 | | - ./atcoder-problems-frontend/node_modules |
86 | | - key: ${{ runner.os }}-cargo-${{ hashFiles('atcoder-problems-frontend/yarn.lock') }} |
| 85 | + atcoder-problems-frontend/node_modules |
| 86 | + key: ${{ runner.os }}-yarn-${{ hashFiles('atcoder-problems-frontend/yarn.lock') }} |
87 | 87 |
|
88 | 88 | - name: Install dependencies |
89 | 89 | run: yarn |
90 | 90 |
|
91 | 91 | - name: Setup mdBook |
92 | | - uses: peaceiris/actions-mdbook@v1.2.0 |
| 92 | + uses: peaceiris/actions-mdbook@v2.0.0 |
93 | 93 | with: |
94 | 94 | mdbook-version: "latest" |
95 | 95 |
|
| 96 | + # Node 17でOpenSSLがデフォルトでMD4ハッシュを提供しなくなり、 |
| 97 | + # これに依存していたwebpackに依存するreact-scripts 4.x系でのビルドができなくなってしまった。 |
| 98 | + # --openssl-legacy-providerをオプションとして渡すことで、Node 17以降でもビルドができる。 |
| 99 | + # react-scripts 4.x系から移行したら、このオプションは不要になる。 |
96 | 100 | - name: build |
97 | | - run: yarn build |
| 101 | + run: export NODE_OPTIONS=--openssl-legacy-provider && yarn build |
98 | 102 | - name: test |
99 | 103 | run: yarn test |
100 | 104 | - name: lint |
|
0 commit comments