Skip to content

Commit c1eefee

Browse files
committed
Add dynamic matrix test lab
The era is computed from the list of available Mithril eras in the binaries.
1 parent c458c2d commit c1eefee

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ concurrency:
2121
jobs:
2222
build-ubuntu-X64:
2323
runs-on: ubuntu-22.04
24+
outputs:
25+
eras: ${{ steps.eras-test-lab.outputs.eras }}
2426
steps:
2527
- name: Checkout sources
2628
uses: actions/checkout@v3
@@ -59,6 +61,13 @@ jobs:
5961
name: mithril-end-to-end-${{ runner.os }}-${{ runner.arch }}
6062
path: target/release/mithril-end-to-end
6163
if-no-files-found: error
64+
65+
- name: Prepare test lab eras
66+
id: eras-test-lab
67+
run: |
68+
ERAS=$(./target/release/mithril-aggregator era list --json)
69+
echo "Test Lab Eras: $ERAS"
70+
echo "eras=$ERAS" >> $GITHUB_OUTPUT
6271
6372
build:
6473
strategy:
@@ -178,7 +187,7 @@ jobs:
178187
strategy:
179188
fail-fast: false
180189
matrix:
181-
era: [ thales ]
190+
era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras) }}
182191
run_id: [1,2,3]
183192
steps:
184193
- name: Checkout sources

0 commit comments

Comments
 (0)