Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@ jobs:
# Skip these steps for forks. Only report results if this workflow was
# called from a regression run as Main builds run multiple times a day.
- name: Combine test reports
if: ${{ github.repository_owner == 'galasa-dev' && github.event_name == 'schedule' }}
if: ${{ failure() && github.repository_owner == 'galasa-dev' && github.event_name == 'schedule' }}
run: |
jq -s '{ tests: map(.tests[]) }' ${{ github.workspace }}/.galasa/test-1.json ${{ github.workspace }}/.galasa/test-2.json ${{ github.workspace }}/.galasa/test-3.json > ${{ github.workspace }}/.galasa/tests.json

# The test report must be sent to Slack in the next job that uses the ubuntu-latest runner.
# We need to run a Docker image to communicate with the Slack webhook and the macos-latest
# runner does not have `docker` installed. Upload the report and download in the next job.
- name: Upload combined test report
if: ${{ github.repository_owner == 'galasa-dev' && github.event_name == 'schedule' }}
if: ${{ failure() && github.repository_owner == 'galasa-dev' && github.event_name == 'schedule' }}
uses: actions/upload-artifact@v4
with:
name: tests.json
Expand All @@ -177,7 +177,7 @@ jobs:

# Skip this job for forks. Only report results if this workflow was
# called from a regression run as Main builds run multiple times a day.
if: ${{ github.repository_owner == 'galasa-dev' && github.event_name == 'schedule' }}
if: ${{ failure() && github.repository_owner == 'galasa-dev' && github.event_name == 'schedule' }}

needs: [build-and-run-simbank-tests]

Expand Down