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

@ -24,8 +24,19 @@ jobs:
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