-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turned off publishing of test results in PR comments
In order not to flood the PRs with lot of comments, publishing of test results to PR comments has been turned off. Results can be sill viewed by going to Checks tab. Commit also includes changes in the way test results are accessed (now GITHUB_WORKSPACE env variable is utilized).
- Loading branch information
1 parent
5affb78
commit f1a1790
Showing
1 changed file
with
7 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,43 +24,28 @@ jobs: | |
--tag keep-client . | ||
- name: Create and enter test results directory | ||
run: | | ||
mkdir -p /tmp/test-results/keep-core-go | ||
cd /tmp/test-results/keep-core-go/ | ||
mkdir -p $GITHUB_WORKSPACE/test-results/ | ||
- name: DEBUG | ||
run: | | ||
pwd | ||
- name: DEBUG | ||
run: | | ||
ls | ||
- name: DEBUG | ||
run: | | ||
ls /tmp/test-results/keep-core-go/ | ||
- name: DEBUG | ||
run: | | ||
ls /home/runner/work/keep-core/keep-core | ||
ls $GITHUB_WORKSPACE/test-results/ | ||
- name: Run Go tests | ||
run: | | ||
docker run \ | ||
--volume /tmp/test-results/keep-core-go:/mnt/test-results \ | ||
--volume $GITHUB_WORKSPACE/test-results:/mnt/test-results \ | ||
--workdir /go/src/github.com/keep-network/keep-core \ | ||
go-build-env \ | ||
gotestsum --junitfile /mnt/test-results/unit-tests.xml | ||
- name: DEBUG | ||
run: | | ||
pwd | ||
- name: DEBUG | ||
run: | | ||
ls | ||
- name: DEBUG | ||
run: | | ||
ls /tmp/test-results/keep-core-go/ | ||
- name: DEBUG | ||
run: | | ||
ls /home/runner/work/keep-core/keep-core | ||
ls $GITHUB_WORKSPACE/test-results/ | ||
- name: Publish Unit Test results | ||
uses: EnricoMi/[email protected] | ||
if: always() # guarantees that this action always runs, even if earlier steps fail | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
files: unit-tests.xml | ||
check_name: Go Test Results # name under which test results will be presented in GitHub (optional) | ||
files: ./test-results/unit-tests.xml | ||
check_name: Go Test Results # name under which test results will be presented in GitHub (optional) | ||
comment_on_pr: false # turns off commenting on Pull Requests |