add cargo cache to test build

This commit is contained in:
Ilion Beyst 2022-10-06 15:42:46 +02:00
parent 2518807c1e
commit 0678c21e09

View file

@ -23,9 +23,20 @@ jobs:
- name: Setup tests
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