File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ permissions:
1010 contents : read
1111 actions : write
1212 checks : write
13+ pull-requests : write
1314
1415jobs :
1516 lint-test :
@@ -71,12 +72,27 @@ jobs:
7172 path : ' reports/test-results.json'
7273
7374 - uses : dorny/test-reporter@v2
75+ if : always()
7476 with :
7577 artifact : test-results
7678 name : Mocha Tests
7779 path : ' test-results.json'
7880 reporter : mocha-json
7981
82+ comment-pr :
83+ name : Comment on PR
84+ needs : mocha-test
85+ if : ${{ (success() || failure()) && github.event.pull_request.head.repo.full_name == github.repository}}
86+ runs-on : ubuntu-latest
87+ steps :
88+ - name : Comment on PR
89+ uses : marocchino/sticky-pull-request-comment@v2.9.4
90+ with :
91+ GITHUB_TOKEN : ${{ github.token }}
92+ header : test-results
93+ message : |
94+ **Test Results:** [Open Results!](https://github.com/hasadna/open-bus-backend/actions/runs/${{ github.run_id }}#user-content-r0)
95+
8096 coverage-test :
8197 name : Test Whit Coverage
8298 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments