File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ README.md
2121scripts/.util/print.sh
2222scripts/.util/tools.json
2323scripts/.util/tools.sh
24+ scripts/.util/builders.sh
2425scripts/integration.sh
Original file line number Diff line number Diff line change 1515concurrency : release
1616
1717jobs :
18+ builders :
19+ name : Get Builders for Testing
20+ runs-on : ubuntu-latest
21+ outputs :
22+ builders : ${{ steps.builders.outputs.builders }}
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v3
26+ - name : Get builders from integration.json
27+ id : builders
28+ run : |
29+ source "${{ github.workspace }}/scripts/.util/builders.sh"
30+
31+ builders="$(util::builders::list "${{ github.workspace }}/integration.json")"
32+ printf "Output: %s\n" "${builders}"
33+ printf "::set-output name=builders::%s\n" "${builders}"
1834 integration :
1935 name : Integration Tests
2036 runs-on : ubuntu-latest
37+ needs : [builders]
38+ strategy :
39+ matrix :
40+ builder : ${{ fromJSON(needs.builders.outputs.builders) }}
41+ fail-fast : false # don't cancel all test jobs when one fails
2142 steps :
2243 - name : Setup Go
2344 uses : actions/setup-go@v3
2748 uses : actions/checkout@v3
2849 - run : git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
2950 - name : Run Integration Tests
30- run : ./scripts/integration.sh
51+ run : ./scripts/integration.sh --builder ${{ matrix.builder }}
3152
3253 release :
3354 name : Release
Original file line number Diff line number Diff line change 2929 printf "::set-output name=builders::%s\n" "${builders}"
3030
3131 integration :
32- name : Integration Tests
32+ name : Integration Tests with Builders
3333 runs-on : ubuntu-latest
3434 needs : [builders]
3535 strategy :
5050 - name : Run Integration Tests
5151 run : ./scripts/integration.sh --builder ${{ matrix.builder }}
5252
53+ roundup :
54+ name : Integration Tests
55+ runs-on : ubuntu-latest
56+ needs : integration
57+ steps :
58+ - run : |
59+ echo "Integration tests passed against all builders"
60+ exit 0
61+
5362 upload :
5463 name : Upload Workflow Event Payload
5564 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments