System tests tryout #1302
Workflow file for this run
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 }} | ||
rcc_yaml_changed: ${{ steps.filter.outputs.rcc_yaml }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
robotmk_yaml: | ||
- '.github/workflows/robotmk.yaml' | ||
rcc_yaml: | ||
- '.github/workflows/rcc.yaml' | ||
tests: | ||
if: always() | ||
uses: ./.github/workflows/tests.yaml | ||
Check failure on line 32 in .github/workflows/ci.yaml GitHub Actions / CIInvalid workflow file
Check failure on line 32 in .github/workflows/ci.yaml GitHub Actions / CIInvalid workflow file
|
||
build_robotmk: | ||
needs: | ||
- analyse_changes | ||
if: ${{ needs.analyse_changes.outputs.robotmk_yaml_changed == 'true' }} | ||
uses: ./.github/workflows/robotmk_build.yaml | ||
Check failure on line 38 in .github/workflows/ci.yaml GitHub Actions / CIInvalid workflow file
|
||
rcc: | ||
needs: | ||
- analyse_changes | ||
if: ${{ needs.analyse_changes.outputs.rcc_yaml_changed == 'true' }} | ||
uses: ./.github/workflows/rcc.yaml | ||
with: | ||
artifact_name: rcc_ci | ||
check_success: | ||
if: always() | ||
runs-on: Ubuntu-latest | ||
needs: | ||
- 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) }} |