Skip to content

Commit

Permalink
chore: upload the code coverage report to DeepSource
Browse files Browse the repository at this point in the history
  • Loading branch information
arttet committed Oct 20, 2024
1 parent 71afcf8 commit c19d253
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version = 1

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

[analyzers.meta]
import_root = "github.com/arttet/Interview-Preparation-Kit-in-Go"
import_root = "github.com/arttet/Interview-Preparation-Kit-in-Go"
11 changes: 9 additions & 2 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ jobs:
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./report.xml
files: report.xml

- name: Upload the code coverage report to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
files: coverage.out
flags: unittests
name: codecov-umbrella

Expand All @@ -142,6 +142,13 @@ jobs:
coverageLocations: |
${{github.workspace}}/*.lcov:lcov
- name: Upload the code coverage report to DeepSource
uses: deepsourcelabs/test-coverage-action@master

Check warning on line 146 in .github/workflows/github-ci.yml

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

.github/workflows/github-ci.yml#L146

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
with:
key: go
coverage-file: coverage.out
dsn: ${{ secrets.DEEPSOURCE_DSN }}

- name: Upload the code coverage report to GitHub
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit c19d253

Please sign in to comment.