Skip to content

Commit 8537199

Browse files
crazy-maxiQQBot
authored andcommitted
ci(test): dedicated step to build integration-tests image
Signed-off-by: CrazyMax <[email protected]>
1 parent a717b70 commit 8537199

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/.test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ env:
3030
GO_VERSION: "1.20"
3131
SETUP_BUILDX_VERSION: "latest"
3232
SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest"
33-
TESTFLAGS: "-v --parallel=6 --timeout=30m"
34-
GOTESTSUM_FORMAT: "standard-verbose"
3533

3634
jobs:
3735
prepare:
@@ -102,6 +100,11 @@ jobs:
102100
runs-on: ubuntu-22.04
103101
needs:
104102
- prepare
103+
env:
104+
TESTFLAGS: "-v --parallel=6 --timeout=30m"
105+
GOTESTSUM_FORMAT: "standard-verbose"
106+
TEST_IMAGE_BUILD: "0"
107+
TEST_IMAGE_ID: "buildkit-tests"
105108
strategy:
106109
fail-fast: false
107110
matrix:
@@ -140,6 +143,14 @@ jobs:
140143
version: ${{ env.SETUP_BUILDX_VERSION }}
141144
driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }}
142145
buildkitd-flags: --debug
146+
-
147+
name: Build test image
148+
uses: docker/bake-action@v4
149+
with:
150+
targets: integration-tests
151+
set: |
152+
*.cache-from=type=gha,scope=${{ inputs.cache_scope }}
153+
*.output=type=docker,name=${{ env.TEST_IMAGE_ID }}
143154
-
144155
name: Test
145156
continue-on-error: ${{ matrix.tags == 'nydus' }}

0 commit comments

Comments
 (0)