Skip to content

Commit

Permalink
ci: update codecov to fail on missing tests (#223)
Browse files Browse the repository at this point in the history
Co-authored-by: Milap Sheth <[email protected]>
  • Loading branch information
AttissNgo and milapsheth authored Jan 28, 2025
1 parent bb7c6dc commit 4da911b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
run: sudo apt-get install libclang-dev

- name: Cache build artifacts
uses: useblacksmith/rust-cache@v3
uses: useblacksmith/rust-cache@v3.0.1
with:
shared-key: "cache"
shared-key: "cache-codecov"

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
targets: wasm32-unknown-unknown

- name: Rust Cache
uses: useblacksmith/rust-cache@v3
uses: useblacksmith/rust-cache@v3.0.1
with:
shared-key: "cache"
shared-key: "cache-compilation"

- name: Build wasm release
run: cargo wasm
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
components: clippy

- name: Rust Cache
uses: useblacksmith/rust-cache@v3
uses: useblacksmith/rust-cache@v3.0.1
with:
shared-key: "cache"
shared-key: "cache-lint"

- name: Install cargo-sort
uses: baptiste0928/cargo-install@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
toolchain: 1.81.0

- name: Rust Cache
uses: useblacksmith/rust-cache@v3
uses: useblacksmith/rust-cache@v3.0.1
with:
shared-key: "cache"
shared-key: "cache-test"

- name: Run tests for contracts
run: for C in contracts/*; do cd $C; RUSTFLAGS="-D warnings" cargo test --locked; cd ../../ ; done
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
toolchain: 1.81.0

- name: Rust Cache
uses: useblacksmith/rust-cache@v3
uses: useblacksmith/rust-cache@v3.0.1
with:
shared-key: "cache"
shared-key: "cache-docs"

- name: Build Documentation
run: |
Expand Down

0 comments on commit 4da911b

Please sign in to comment.