Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upload the code coverage report to DeepSource #19

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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 @@
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