Skip to content

Commit

Permalink
Turned off publishing of test results in PR comments
Browse files Browse the repository at this point in the history
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
michalinacienciala committed Feb 9, 2021
1 parent 5affb78 commit 372333d
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,43 +24,19 @@ 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/
- 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
mkdir -p $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
- 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

0 comments on commit 372333d

Please sign in to comment.