Skip to content

Commit

Permalink
Add a single job validate-test-result that will fail will be used to …
Browse files Browse the repository at this point in the history
…gate pr merges
  • Loading branch information
imindich committed Jan 14, 2025
1 parent a73be93 commit 9dd423e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,21 @@ jobs:
test_results_key: ${{ env.TEST_RESULTS_KEY }}
datadog_api_key: ${{ secrets.datadog_api_key }}
continue-on-error: true

validate-test-result:
needs: test
permissions: {}
runs-on: [self-hosted, chrobalt-linux-runner]
name: ${{ matrix.name }}_tests_passing
strategy:
matrix:
platform: ${{ fromJson(needs.initialize.outputs.platforms) }}
include: ${{ fromJson(needs.initialize.outputs.includes) }}
config: [devel]
container: ${{ needs.docker-build-image.outputs.docker_tag }}
steps:
- name: Fail if any test shards have failed
if: ${{ needs.test.result != 'success' }}
run: |
echo "Failing because at least one test shard had errors."
exit 1

0 comments on commit 9dd423e

Please sign in to comment.