aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-10-06 15:42:46 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-10-06 15:42:46 +0200
commit0678c21e091d4c4032ffe310976668477b145be8 (patch)
tree49485bdc8ed0977cd531fbe1dd63395f2ec7546d
parent2518807c1e1ac47384a651fd7214a475707ebd1b (diff)
downloadplanetwars.dev-0678c21e091d4c4032ffe310976668477b145be8.tar.xz
planetwars.dev-0678c21e091d4c4032ffe310976668477b145be8.zip
add cargo cache to test build
-rw-r--r--.github/workflows/rust-tests.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml
index ab3a7eb..fa6ea57 100644
--- a/.github/workflows/rust-tests.yml
+++ b/.github/workflows/rust-tests.yml
@@ -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 \ No newline at end of file
+ cargo test \ No newline at end of file