Skip to content

Feature/carlos ci action (#12) #27

Feature/carlos ci action (#12)

Feature/carlos ci action (#12) #27

name: automated-testing
on: push
jobs:
generate-scenario-job-matrix:
runs-on: [self-hosted]
outputs:
matrix: ${{ steps.generate.outputs.matrix }}
name: generate scenario job matrix
steps:
- uses: actions/checkout@v4
- id: generate
uses: ./.github/actions/generate-job-matrix
with:
starting-point: ./utils/scenarios
query-string: '*.xosc'
exclude-string: '*/catalogs/*'
evaluate-required-scenarios:
needs: generate-scenario-job-matrix
runs-on: [self-hosted]
name: Run ${{ matrix.filename }}
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.generate-scenario-job-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- shell: bash
run: |
xhost +local:
- uses: ika-rwth-aachen/carlos-ci-action@v0.1.1
with:
composefile-path: automated-testing/carla-sim.yml
scenario-folder-path: ${{ matrix.filedir }}
scenario-file-name: ${{ matrix.filename }}
- shell: bash
run: |
xhost -local:
generate-opt-scenario-job-matrix:
needs: evaluate-required-scenarios
runs-on: [self-hosted]
outputs:
opt-matrix: ${{ steps.generate-opt.outputs.matrix }}
name: generate optional scenario job matrix
steps:
- uses: actions/checkout@v4
- id: generate-opt
uses: ./.github/actions/generate-job-matrix
with:
starting-point: ./utils/scenarios
query-string: '*.xosc.opt'
exclude-string: '*/catalogs/*'
evaluate-optional-scenarios:
needs: generate-opt-scenario-job-matrix
runs-on: [self-hosted]
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.generate-opt-scenario-job-matrix.outputs.opt-matrix) }}
name: Run ${{ matrix.filename }}
steps:
- uses: actions/checkout@v4
- shell: bash
run: |
xhost +local:
- uses: ika-rwth-aachen/carlos-ci-action@v0.1.1
continue-on-error: true
with:
composefile-path: automated-testing/carla-sim.yml
scenario-folder-path: ${{ matrix.filedir }}
scenario-file-name: ${{ matrix.filename }}
- shell: bash
run: |
xhost -local: