mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
post comment with CDASH url when tests are failing
This commit is contained in:
parent
3004f3bfb6
commit
d87280f752
@ -67,7 +67,7 @@ IF(NOT IGNORE_BUILD_FAILURES)
|
||||
MESSAGE(" ${Yellow}Test results submitted to${ColorReset}")
|
||||
MESSAGE(" ${BoldYellow}${SHORTURL}${ColorReset}")
|
||||
# Github workflow output
|
||||
MESSAGE("::set-output name=CDASH_URL::${SHORTURL}$")
|
||||
MESSAGE("::set-output name=CDASH_URL::${SHORTURL}")
|
||||
MESSAGE("")
|
||||
MESSAGE( FATAL_ERROR " ${Red}Build failed. Not running tests.${ColorReset}" )
|
||||
MESSAGE("")
|
||||
@ -80,7 +80,7 @@ IF(NOT ${NUMWARN} EQUAL 0 OR NOT ${TESTRES} EQUAL 0)
|
||||
MESSAGE(" ${Yellow}Test results submitted to${ColorReset}")
|
||||
MESSAGE(" ${BoldYellow}${SHORTURL}${ColorReset}" )
|
||||
# Github workflow output
|
||||
MESSAGE("::set-output name=CDASH_URL::${SHORTURL}$")
|
||||
MESSAGE("::set-output name=CDASH_URL::${SHORTURL}")
|
||||
MESSAGE("")
|
||||
SET(LEVEL "")
|
||||
IF(NOT ${TESTRES} EQUAL 0)
|
||||
|
11
.github/workflows/run-tests.yml
vendored
11
.github/workflows/run-tests.yml
vendored
@ -160,6 +160,15 @@ jobs:
|
||||
name: Publish link to CDASH
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
if: failure()
|
||||
if: failure() and github.event_name == 'pull_request'
|
||||
steps:
|
||||
- run: echo "${{ needs.build.outputs.cdash_url }}"
|
||||
|
||||
- name: Create comment
|
||||
uses: peter-evans/create-or-update-comment@v1
|
||||
with:
|
||||
token: ${{ steps.token.outputs.token }}
|
||||
issue-number: ${{ github.event.pull_request.number }}
|
||||
body: |
|
||||
Some tests are failing.
|
||||
Tests results: ${{ needs.build.outputs.cdash_url }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user