20
20
- ' scripts/**'
21
21
22
22
env :
23
- GO_VERSION : ' 1.21.11 '
23
+ GO_VERSION : ' 1.21.10 '
24
24
25
25
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]
28
47
timeout-minutes : 15
29
48
steps :
30
49
- uses : actions/checkout@v4
33
52
go-version : ${{ env.GO_VERSION }}
34
53
- run : make
35
54
- 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
38
59
timeout-minutes : 40
39
60
strategy :
40
61
fail-fast : false
48
69
with :
49
70
go-version : ${{ env.GO_VERSION }}
50
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
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