Skip to content

Commit 6c30eb0

Browse files
committed
test if codebuild filters are working
Signed-off-by: Arjun <[email protected]>
1 parent 07296f9 commit 6c30eb0

File tree

1 file changed

+43
-5
lines changed

1 file changed

+43
-5
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,30 @@ on:
2020
- 'scripts/**'
2121

2222
env:
23-
GO_VERSION: '1.21.11'
23+
GO_VERSION: '1.21.10'
2424

2525
jobs:
26-
test:
27-
runs-on: ubuntu-20.04
26+
test-on-codebuild:
27+
if: github.repository == 'awslabs/soci-snapshotter'
28+
runs-on: codebuild-soci-snapshotter-build-test-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.os }}
29+
strategy:
30+
matrix:
31+
os: [arm-3.0-large, ubuntu-7.0-xlarge, ubuntu-7.0-small, ubuntu-7.0-medium, ubuntu-7.0-medium]
32+
timeout-minutes: 15
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: actions/setup-go@v5
36+
with:
37+
go-version: ${{ env.GO_VERSION }}
38+
- run: make
39+
- run: make test
40+
41+
test-on-fork:
42+
if: github.repository != 'awslabs/soci-snapshotter'
43+
runs-on: codebuild-soci-snapshotter-build-test-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.os }}
44+
strategy:
45+
matrix:
46+
os: [arm-3.0-large, ubuntu-7.0-xlarge]
2847
timeout-minutes: 15
2948
steps:
3049
- uses: actions/checkout@v4
@@ -33,8 +52,27 @@ jobs:
3352
go-version: ${{ env.GO_VERSION }}
3453
- run: make
3554
- run: make test
36-
integration:
37-
runs-on: ubuntu-20.04
55+
56+
integration-on-codebuild:
57+
if: github.repository == 'awslabs/soci-snapshotter'
58+
runs-on: codebuild-soci-snapshotter-build-test-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
59+
timeout-minutes: 40
60+
strategy:
61+
fail-fast: false
62+
matrix:
63+
containerd: ["1.6.30", "1.7.14"]
64+
env:
65+
DOCKER_BUILD_ARGS: "CONTAINERD_VERSION=${{ matrix.containerd }}"
66+
steps:
67+
- uses: actions/checkout@v4
68+
- uses: actions/setup-go@v5
69+
with:
70+
go-version: ${{ env.GO_VERSION }}
71+
- run: make integration
72+
73+
integration-on-fork:
74+
if: github.repository != 'awslabs/soci-snapshotter'
75+
runs-on: codebuild-soci-snapshotter-build-test-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
3876
timeout-minutes: 40
3977
strategy:
4078
fail-fast: false

0 commit comments

Comments
 (0)