Skip to content

Commit

Permalink
gh-actions: report release-tests result to Matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jan 12, 2023
1 parent 75c909b commit 764f7f0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:
sudo apt-get install lib32asan6
- name: Run release tests
timeout-minutes: 350
id: tests
run: |
RIOTBASE="$GITHUB_WORKSPACE/RIOT"
TOX_ARGS=""
Expand Down Expand Up @@ -173,6 +174,27 @@ jobs:
mkdir test-reports/
junit2html ${REPORT_XML} ${REPORT_NAME}.html
cp ${REPORT_XML} ${REPORT_NAME}.xml
- name: Generate result message
if: always()
id: generate_results
run: |
if [ "${{ steps.tests.conclusion }}" == "success" ]; then
nice_str=echo "✅ **PASSED**"
elif [ "${{ steps.tests.conclusion }}" == "failure" ]; then
nice_str="❌ **FAILED**"
fi
echo "nice_str=${nice_str}" >> ${GITHUB_OUTPUT}
- name: Report to Matrix channel
if: ${{ always() && steps.generate_results.outputs.nice_str != '' }}
uses: fadenb/matrix-chat-message@v0.0.6
with:
homeserver: matrix.org
token: ${{ secrets.RIOT_CI_MATRIX_TOKEN }}
channel: '!UXNJuMzHTSAnwntbbN:utwente.io'
message: |
${{ steps.generate_results.outputs.nice_str}}: Release tests
[${{ matrix.pytest_mark }}, ${{ matrix.sudo }}] on "*${{ github.event_name }}*":
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- uses: actions/upload-artifact@v2
if: always()
with:
Expand Down

0 comments on commit 764f7f0

Please sign in to comment.