Scheduler main: Check for cancellation between base setup and setup s… #2775
This file contains 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: "CI" | |
on: | |
push: | |
branches: | |
# Do not trigger on tags | |
# https://stackoverflow.com/questions/68573888/how-can-i-not-execute-a-github-action-when-i-push-a-new-tag | |
"**" | |
pull_request: | |
jobs: | |
analyse_changes: | |
if: always() | |
runs-on: ubuntu-latest | |
outputs: | |
robotmk_yaml_changed: ${{ steps.filter.outputs.robotmk_yaml }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
robotmk_yaml: | |
- '.github/workflows/robotmk_build.yaml' | |
tests: | |
if: always() | |
uses: ./.github/workflows/tests.yaml | |
build_robotmk: | |
needs: | |
- analyse_changes | |
if: ${{ needs.analyse_changes.outputs.robotmk_yaml_changed == 'true' }} | |
uses: ./.github/workflows/robotmk_build.yaml | |
rcc: | |
uses: ./.github/workflows/rcc.yaml | |
system_tests: | |
needs: rcc | |
uses: ./.github/workflows/system_tests.yaml | |
check_success: | |
if: always() | |
runs-on: Ubuntu-latest | |
needs: | |
- tests | |
- system_tests | |
- build_robotmk | |
- rcc | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
allowed-skips: build_robotmk, rcc | |
jobs: ${{ toJSON(needs) }} |