76
76
run : |
77
77
platform=${{ matrix.platform }}
78
78
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
79
- -
80
- name : Checkout
81
- uses : actions/checkout@v4
82
79
-
83
80
name : Set up QEMU
84
81
uses : docker/setup-qemu-action@v3
87
84
uses : docker/setup-buildx-action@v3
88
85
-
89
86
name : Build
90
- uses : docker/bake-action@v5
87
+ uses : docker/bake-action@v6
91
88
with :
92
89
targets : release
93
90
set : |
@@ -105,15 +102,12 @@ jobs:
105
102
test :
106
103
runs-on : ubuntu-latest
107
104
steps :
108
- -
109
- name : Checkout
110
- uses : actions/checkout@v4
111
105
-
112
106
name : Set up Docker Buildx
113
107
uses : docker/setup-buildx-action@v3
114
108
-
115
109
name : Test
116
- uses : docker/bake-action@v5
110
+ uses : docker/bake-action@v6
117
111
with :
118
112
targets : test
119
113
set : |
@@ -149,70 +143,73 @@ jobs:
149
143
mode=${{ matrix.mode }}
150
144
engine=${{ matrix.engine }}
151
145
echo "MODE_ENGINE_PAIR=${mode}-${engine}" >> $GITHUB_ENV
152
- -
153
- name : Checkout
146
+
147
+ - name : Checkout
154
148
uses : actions/checkout@v4
149
+
155
150
- name : Install Docker ${{ matrix.engine }}
156
151
run : |
157
152
sudo systemctl stop docker.service
158
153
sudo apt-get purge docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin
159
154
sudo apt-get install curl
160
155
curl -fsSL https://test.docker.com -o get-docker.sh
161
156
sudo sh ./get-docker.sh --version ${{ matrix.engine }}
157
+
162
158
- name : Check Docker Version
163
159
run : docker --version
164
- -
165
- name : Set up Docker Buildx
160
+
161
+ - name : Set up Docker Buildx
166
162
uses : docker/setup-buildx-action@v3
167
- -
168
- name : Set up Go
163
+
164
+ - name : Set up Go
169
165
uses : actions/setup-go@v5
170
166
with :
171
167
go-version-file : ' go.mod'
172
168
check-latest : true
173
169
cache : true
174
- -
175
- name : Build
176
- uses : docker/bake-action@v5
170
+
171
+ - name : Build
172
+ uses : docker/bake-action@v6
177
173
with :
174
+ source : .
178
175
targets : binary-with-coverage
179
176
set : |
180
177
*.cache-from=type=gha,scope=binary-linux-amd64
181
178
*.cache-from=type=gha,scope=binary-e2e-${{ matrix.mode }}
182
179
*.cache-to=type=gha,scope=binary-e2e-${{ matrix.mode }},mode=max
183
180
env :
184
181
BUILD_TAGS : e2e
185
- -
186
- name : Setup tmate session
182
+
183
+ - name : Setup tmate session
187
184
if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
188
185
uses : mxschmitt/action-tmate@8b4e4ac71822ed7e0ad5fb3d1c33483e9e8fb270 # v3.11
189
186
with :
190
187
limit-access-to-actor : true
191
188
github-token : ${{ secrets.GITHUB_TOKEN }}
192
- -
193
- name : Test plugin mode
189
+
190
+ - name : Test plugin mode
194
191
if : ${{ matrix.mode == 'plugin' }}
195
192
run : |
196
193
rm -rf ./bin/coverage/e2e
197
194
mkdir -p ./bin/coverage/e2e
198
195
make e2e-compose GOCOVERDIR=bin/coverage/e2e TEST_FLAGS="-v"
199
- -
200
- name : Gather coverage data
196
+
197
+ - name : Gather coverage data
201
198
if : ${{ matrix.mode == 'plugin' }}
202
199
uses : actions/upload-artifact@v4
203
200
with :
204
201
name : coverage-data-e2e-${{ env.MODE_ENGINE_PAIR }}
205
202
path : bin/coverage/e2e/
206
203
if-no-files-found : error
207
- -
208
- name : Test standalone mode
204
+
205
+ - name : Test standalone mode
209
206
if : ${{ matrix.mode == 'standalone' }}
210
207
run : |
211
208
rm -f /usr/local/bin/docker-compose
212
209
cp bin/build/docker-compose /usr/local/bin
213
210
make e2e-compose-standalone
214
- -
215
- name : e2e Test Summary
211
+
212
+ - name : e2e Test Summary
216
213
uses : test-summary/action@v2
217
214
with :
218
215
paths : /tmp/report/report.xml
0 commit comments