-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3a9c8e
commit 89220de
Showing
4 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,7 @@ jobs: | |
cat report.txt | go-junit-report -set-exit-code > report.xml | ||
else | ||
go test -v ./... -coverprofile=coverage.out -covermode=atomic 2>&1 ./... > report.txt | ||
cat report.txt | go-junit-report -set-exit-code > report.xml | ||
fi | ||
- name: Publish Test Report | ||
|
@@ -90,5 +91,16 @@ jobs: | |
with: | ||
report_paths: './report.xml' | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
- name: Test Summary | ||
uses: test-summary/action@v2 | ||
if: always() | ||
with: | ||
paths: ./report.xml | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
files: coverage.out | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
name: coverage-${{ github.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters