Skip to content

Commit 6740287

Browse files
danieleadesar3s3ru
andauthored
feat(github): update coverage workflow (#244)
Co-authored-by: Danilo Cianfrone <6481571+ar3s3ru@users.noreply.github.com>
1 parent b9f6e7c commit 6740287

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,31 +89,31 @@ jobs:
8989
- name: Install Rust stable toolchain
9090
uses: actions-rs/toolchain@v1
9191
with:
92-
toolchain: stable
92+
toolchain: nightly
9393
profile: minimal
9494
override: true
95-
components: rustfmt
9695

9796
- name: Rust cache
9897
uses: Swatinem/rust-cache@v2
9998

100-
- name: Run cargo-tarpaulin
101-
uses: actions-rs/tarpaulin@v0.1
102-
with:
103-
args: --workspace --all-features
99+
- name: Install cargo-llvm-cov
100+
uses: taiki-e/install-action@cargo-llvm-cov
101+
102+
- name: Run llvm-cov
103+
run: cargo llvm-cov --all-features --doctests --workspace --lcov --output-path lcov.info
104104
env:
105105
DATABASE_URL: postgres://eventually:password@localhost:5432/eventually?sslmode=disable
106106

107107
- name: Upload to codecov.io
108108
uses: codecov/codecov-action@v3
109109
with:
110-
token: ${{secrets.CODECOV_TOKEN}}
110+
files: lcov.info
111111

112112
- name: Archive code coverage results
113113
uses: actions/upload-artifact@v3
114114
with:
115115
name: code-coverage-report
116-
path: cobertura.xml
116+
path: lcov.info
117117

118118
formatting:
119119
name: Rustfmt Check

0 commit comments

Comments
 (0)