Skip to content

Commit

Permalink
Update GitHub Actions cargo caching
Browse files Browse the repository at this point in the history
To reflect latest example config given by actions/cache.
  • Loading branch information
Ortham committed Sep 15, 2022
1 parent 5415195 commit 71dc17b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@ jobs:
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Prepare test resources
run: |
(New-Object Net.WebClient).DownloadFile('https://github.com/WrinklyNinja/testing-plugins/archive/1.4.1.zip', "$PWD/1.4.1.zip")
7z x 1.4.1.zip
mv testing-plugins-1.4.1 testing-plugins
- name: Build and run tests
run: cargo test --all --all-features

Expand All @@ -61,9 +64,11 @@ jobs:
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install Tarpaulin
Expand Down

0 comments on commit 71dc17b

Please sign in to comment.