File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Affected Go Tests
22
33on :
44 workflow_run :
5- workflows : ["build-test "]
5+ workflows : ["build"]
66 types : [completed]
77 branches : [main]
88
@@ -11,7 +11,7 @@ permissions:
1111
1212jobs :
1313 test-affected :
14- # Only run if the build-test workflow succeeded and it's not a draft PR
14+ # Only run if the build workflow succeeded and it's not a draft PR
1515 if : |
1616 github.event.workflow_run.conclusion == 'success' &&
1717 github.event.workflow_run.event == 'pull_request' &&
Original file line number Diff line number Diff line change 1818 - name : Run tests
1919 run : make test-integration
2020
21+ build-binaries :
22+ runs-on : ubuntu-latest
23+ timeout-minutes : 10
24+ steps :
25+ - uses : actions/checkout@v5
26+ - uses : ./.github/actions/setup-go
27+ - name : Cache Go build and modules
28+ uses : actions/cache@v4
29+ with :
30+ path : |
31+ ~/.cache/go-build
32+ ~/go/pkg/mod
33+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
34+ restore-keys : |
35+ ${{ runner.os }}-go-
36+ - name : Go mod download
37+ run : go mod download
38+ - name : Build binaries
39+ run : make build
40+ - uses : actions/upload-artifact@v4
41+ with :
42+ name : binaries
43+ path : bin/
44+ retention-days : 1
45+
2146 e2e :
22- needs : unit-integration
47+ needs : [ unit-integration, build-binaries]
2348 runs-on : ubuntu-latest
2449 timeout-minutes : 15
2550 strategy :
3762 needs-k3s : false
3863 steps :
3964 - uses : actions/checkout@v5
65+ - uses : actions/download-artifact@v4
66+ with :
67+ name : binaries
68+ path : bin/
69+ - run : chmod +x bin/*
4070 - name : Setup K3s
4171 if : matrix.needs-k3s
4272 uses : replicatedhq/action-k3s@main
You can’t perform that action at this time.
0 commit comments