add cargo cache to test build
This commit is contained in:
parent
2518807c1e
commit
0678c21e09
1 changed files with 12 additions and 1 deletions
13
.github/workflows/rust-tests.yml
vendored
13
.github/workflows/rust-tests.yml
vendored
|
@ -24,8 +24,19 @@ jobs:
|
|||
run: |
|
||||
docker pull python:3.10-slim-buster
|
||||
|
||||
- name: Cargo cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
cd planetwars-matchrunner
|
||||
cargo check
|
||||
cargo test --all
|
||||
cargo test
|
Loading…
Reference in a new issue