Skip to content

Commit d224e71

Browse files
committed
Updating github-config
1 parent f382fd8 commit d224e71

3 files changed

Lines changed: 33 additions & 2 deletions

File tree

.github/.patch_files

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ README.md
2121
scripts/.util/print.sh
2222
scripts/.util/tools.json
2323
scripts/.util/tools.sh
24+
scripts/.util/builders.sh
2425
scripts/integration.sh

.github/workflows/create-draft-release.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,30 @@ on:
1515
concurrency: release
1616

1717
jobs:
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
@@ -27,7 +48,7 @@ jobs:
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

.github/workflows/test-pull-request.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
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:
@@ -50,6 +50,15 @@ jobs:
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

0 commit comments

Comments
 (0)