Skip to content

Commit 57a09bd

Browse files
committed
try deepsource
1 parent 928a19b commit 57a09bd

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

.deepsource.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ name = "rust"
55
enabled = true
66

77
[analyzers.meta]
8-
msrv = "stable"
8+
msrv = "stable"
9+
10+
name = "test-coverage"
11+
enabled = true

.github/workflows/test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ jobs:
1919
run: cargo build --verbose
2020
- name: Run tests
2121
run: cargo test --verbose
22-
- name: SonarCloud Scan
23-
uses: SonarSource/sonarcloud-github-action@master
22+
- name: Upload codecov
23+
run: |
24+
cargo +stable install cargo-llvm-cov
25+
cargo llvm-cov --lcov --output-path coverage.info
26+
curl https://deepsource.io/cli | sh
27+
./bin/deepsource report --analyzer test-coverage --key rust --value-file ./coverage.info
2428
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
26-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
29+
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}

0 commit comments

Comments
 (0)