55 branches :
66 - v2
77 pull_request :
8+ workflow_dispatch :
9+ inputs :
10+ debug_enabled :
11+ description : ' To run with tmate enter "debug_enabled"'
12+ required : false
13+ default : " false"
814
915jobs :
1016 lint :
@@ -13,16 +19,16 @@ jobs:
1319 env :
1420 GO111MODULE : " on"
1521 steps :
16- - name : Set up Go 1.17
22+ - name : Set up Go 1.18
1723 uses : actions/setup-go@v2
1824 with :
19- go-version : 1.17
25+ go-version : 1.18.3
2026 id : go
2127
2228 - name : Checkout code into the Go module directory
2329 uses : actions/checkout@v2
2430
25- - name : Validate go-mod is up-to-date and license headers
31+ - name : Validate go-mod, license headers and docs are up-to-date
2632 run : make validate
2733
2834 - name : Run golangci-lint
@@ -40,10 +46,10 @@ jobs:
4046 env :
4147 GO111MODULE : " on"
4248 steps :
43- - name : Set up Go 1.17
49+ - name : Set up Go 1.18
4450 uses : actions/setup-go@v2
4551 with :
46- go-version : 1.17
52+ go-version : 1.18.3
4753 id : go
4854
4955 - name : Checkout code into the Go module directory
@@ -65,10 +71,10 @@ jobs:
6571 env :
6672 GO111MODULE : " on"
6773 steps :
68- - name : Set up Go 1.17
74+ - name : Set up Go 1.18
6975 uses : actions/setup-go@v2
7076 with :
71- go-version : 1.17
77+ go-version : 1.18.3
7278 id : go
7379
7480 - name : Setup docker CLI
9096 - name : Build for local E2E
9197 env :
9298 BUILD_TAGS : e2e
93- run : make -f builder.Makefile compose-plugin
99+ run : make GIT_TAG=e2e-PR-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }} -f builder.Makefile compose-plugin
94100
95101 - name : E2E Test in plugin mode
96102 run : make e2e-compose
@@ -101,10 +107,10 @@ jobs:
101107 env :
102108 GO111MODULE : " on"
103109 steps :
104- - name : Set up Go 1.17
110+ - name : Set up Go 1.18
105111 uses : actions/setup-go@v2
106112 with :
107- go-version : 1.17
113+ go-version : 1.18.3
108114 id : go
109115
110116 - name : Setup docker CLI
@@ -123,7 +129,17 @@ jobs:
123129 - name : Build for local E2E
124130 env :
125131 BUILD_TAGS : e2e
126- run : make -f builder.Makefile compose-plugin
132+ run : make GIT_TAG=e2e-PR-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }} -f builder.Makefile compose-plugin
133+
134+ - name : Setup tmate session
135+ uses : mxschmitt/action-tmate@v3
136+ with :
137+ limit-access-to-actor : true
138+ github-token : ${{ secrets.GITHUB_TOKEN }}
139+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
127140
128141 - name : E2E Test in standalone mode
129- run : make e2e-compose-standalone
142+ run : |
143+ rm -f /usr/local/bin/docker-compose
144+ cp bin/docker-compose /usr/local/bin
145+ make e2e-compose-standalone
0 commit comments