Skip to content

Commit 3124e41

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

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]
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,10 @@ 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
3859
timeout-minutes: 40
3960
strategy:
4061
fail-fast: false
@@ -48,3 +69,20 @@ jobs:
4869
with:
4970
go-version: ${{ env.GO_VERSION }}
5071
- 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
76+
timeout-minutes: 40
77+
strategy:
78+
fail-fast: false
79+
matrix:
80+
containerd: ["1.6.30", "1.7.14"]
81+
env:
82+
DOCKER_BUILD_ARGS: "CONTAINERD_VERSION=${{ matrix.containerd }}"
83+
steps:
84+
- uses: actions/checkout@v4
85+
- uses: actions/setup-go@v5
86+
with:
87+
go-version: ${{ env.GO_VERSION }}
88+
- run: make integration

0 commit comments

Comments
 (0)