File tree Expand file tree Collapse file tree 3 files changed +63
-2
lines changed
test/integration/codebuild-local Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Original file line number Diff line number Diff line change 1818 node-version : ' 16'
1919 - name : Run 'pr' target
2020 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
1515 CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_one.sh test/integration/codebuild/buildspec.os.alpine.1.yml alpine 3.16 18
1616
1717test-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
1919
2020copy-files :
2121 npm run copy-files
Original file line number Diff line number Diff line change 44set -euo pipefail
55
66CODEBUILD_IMAGE_TAG=" ${CODEBUILD_IMAGE_TAG:- al2/ x86_64/ standard/ 3.0} "
7+ DISTRO=" ${DISTRO:= " " } "
78DRYRUN=" ${DRYRUN-0} "
89
910function usage {
@@ -54,7 +55,7 @@ main() {
5455
5556 BUILDSPEC_YML_DIR=" $1 "
5657 HAS_YML=0
57- for f in " $BUILDSPEC_YML_DIR " /* .yml ; do
58+ for f in " $BUILDSPEC_YML_DIR " /* " $DISTRO " * .yml ; do
5859 [ -f " $f " ] || continue ;
5960 do_one_yaml " $f "
6061 HAS_YML=1
You can’t perform that action at this time.
0 commit comments