File tree 3 files changed +63
-2
lines changed
test/integration/codebuild-local
3 files changed +63
-2
lines changed Original file line number Diff line number Diff line change 18
18
node-version : ' 16'
19
19
- name : Run 'pr' target
20
20
run : make pr
21
+
22
+ alpine :
23
+ runs-on : ubuntu-latest
24
+
25
+ steps :
26
+ - uses : actions/checkout@v2
27
+ - name : Set up node
28
+ uses : actions/setup-node@v1
29
+ with :
30
+ node-version : ' 16'
31
+ - name : Run alpine integration tests
32
+ run : DISTRO=alpine make test-integ
33
+
34
+ amazonlinux :
35
+ runs-on : ubuntu-latest
36
+
37
+ steps :
38
+ - uses : actions/checkout@v2
39
+ - name : Set up node
40
+ uses : actions/setup-node@v1
41
+ with :
42
+ node-version : ' 16'
43
+ - name : Run amazonlinux integration tests
44
+ run : DISTRO=amazonlinux make test-integ
45
+
46
+ centos :
47
+ runs-on : ubuntu-latest
48
+
49
+ steps :
50
+ - uses : actions/checkout@v2
51
+ - name : Set up node
52
+ uses : actions/setup-node@v1
53
+ with :
54
+ node-version : ' 16'
55
+ - name : Run centos integration tests
56
+ run : DISTRO=centos make test-integ
57
+
58
+ debian :
59
+ runs-on : ubuntu-latest
60
+
61
+ steps :
62
+ - uses : actions/checkout@v2
63
+ - name : Set up node
64
+ uses : actions/setup-node@v1
65
+ with :
66
+ node-version : ' 16'
67
+ - name : Run debian integration tests
68
+ run : DISTRO=debian make test-integ
69
+
70
+ ubuntu :
71
+ runs-on : ubuntu-latest
72
+
73
+ steps :
74
+ - uses : actions/checkout@v2
75
+ - name : Set up node
76
+ uses : actions/setup-node@v1
77
+ with :
78
+ node-version : ' 16'
79
+ - name : Run ubuntu integration tests
80
+ run : DISTRO=ubuntu make test-integ
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ test-smoke: setup-codebuild-agent
15
15
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_one.sh test/integration/codebuild/buildspec.os.alpine.1.yml alpine 3.16 18
16
16
17
17
test-integ : setup-codebuild-agent
18
- CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_all.sh test/integration/codebuild
18
+ CODEBUILD_IMAGE_TAG=codebuild-agent DISTRO= " $( DISTRO ) " test/integration/codebuild-local/test_all.sh test/integration/codebuild
19
19
20
20
copy-files :
21
21
npm run copy-files
Original file line number Diff line number Diff line change 4
4
set -euo pipefail
5
5
6
6
CODEBUILD_IMAGE_TAG=" ${CODEBUILD_IMAGE_TAG:- al2/ x86_64/ standard/ 3.0} "
7
+ DISTRO=" ${DISTRO:= " " } "
7
8
DRYRUN=" ${DRYRUN-0} "
8
9
9
10
function usage {
@@ -54,7 +55,7 @@ main() {
54
55
55
56
BUILDSPEC_YML_DIR=" $1 "
56
57
HAS_YML=0
57
- for f in " $BUILDSPEC_YML_DIR " /* .yml ; do
58
+ for f in " $BUILDSPEC_YML_DIR " /* " $DISTRO " * .yml ; do
58
59
[ -f " $f " ] || continue ;
59
60
do_one_yaml " $f "
60
61
HAS_YML=1
You can’t perform that action at this time.
0 commit comments