Skip to content

Commit

Permalink
ci: upload coverage report to deepsource (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentSarmiento authored Dec 24, 2023
1 parent 90d18fd commit 69385c1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ version = 1

[[analyzers]]
name = "rust"
enabled = true

[analyzers.meta]
msrv = "stable"
msrv = "stable"

[[analyzers]]
name = "test-coverage"
enabled = true
13 changes: 12 additions & 1 deletion .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# https://docs.deepsource.com/docs/analyzers-test-coverage#with-github-actions
- name: Use pull request HEAD commit for DeepSource
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -125,3 +129,10 @@ jobs:
file: ./lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Upload coverage reports to DeepSource
run: |
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key rust --value-file ./lcov.info
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}

0 comments on commit 69385c1

Please sign in to comment.