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
|
@ -23,9 +23,20 @@ jobs:
|
||||||
- name: Setup tests
|
- name: Setup tests
|
||||||
run: |
|
run: |
|
||||||
docker pull python:3.10-slim-buster
|
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
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
cd planetwars-matchrunner
|
cd planetwars-matchrunner
|
||||||
cargo check
|
cargo check
|
||||||
cargo test --all
|
cargo test
|
Loading…
Reference in a new issue