Modes #58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Modes | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '*' | |
| merge_group: | |
| types: [checks_requested] | |
| schedule: | |
| - cron: '10 */6 * * *' | |
| jobs: | |
| modes: | |
| uses: ./.github/workflows/modes-reusable.yaml | |
| # Single check for branch protection after all mode tests complete | |
| modes-ok: | |
| needs: modes | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check mode tests passed | |
| run: | | |
| if [[ "${{ needs.modes.result }}" != "success" ]]; then | |
| echo "Mode tests failed with result: ${{ needs.modes.result }}" | |
| exit 1 | |
| fi | |
| echo "All mode tests passed" |