-
Notifications
You must be signed in to change notification settings - Fork 6
74 lines (71 loc) · 2.24 KB
/
automated-testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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: