Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
repush
Browse files Browse the repository at this point in the history
  • Loading branch information
thesuzerain committed Nov 14, 2023
1 parent 6daa419 commit ed1cfa7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage-tarp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: docker-compose up -d
- name: Generate code coverage
run: |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v2
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/coverage2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,24 @@ jobs:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
# Cache dependencies and build artifacts
- name: Cache build artifacts and dependencies
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/cargo@v1
with:
command: build
env:
SQLX_OFFLINE: true
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --lcov --output-path lcov.info
run: cargo llvm-cov --no-clean --all-features --frozen --lcov --output-path lcov.info
env:
SQLX_OFFLINE: true # needed to keep it from trying to connect to a database
- name: Upload coverage to Codecov
Expand Down

0 comments on commit ed1cfa7

Please sign in to comment.