Skip to content

Commit be1315f

Browse files
committed
CIのcargo buildcargo test --no-runに置き換えた
`cargo build`と`cargo test`は異なるProfileでビルドを行うため、 同じcrateが2度コンパイルされるなどの無駄があった。 `cargo test --no-run`は`cargo test`と同じProfileでビルドを行うので、crateが再利用されていい感じ。 また、テストのビルドと実行が分離されるため、それぞれの時間が分かりやすくなる。
1 parent ec129a6 commit be1315f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ jobs:
5858
run: cargo fmt --all -- --check
5959

6060
- name: Build
61-
run: cargo build --verbose
61+
run: cargo test --no-run --workspace --locked --verbose
6262

6363
- name: Run tests
64-
run: cargo test --verbose --workspace -- --test-threads=1
64+
run: cargo test --workspace --locked --verbose -- --test-threads=1
6565

6666
frontend_test:
6767
name: Run frontend tests

0 commit comments

Comments
 (0)