File tree 7 files changed +49
-14
lines changed
7 files changed +49
-14
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,45 @@ jobs:
12
12
13
13
steps :
14
14
- uses : actions/checkout@v2
15
- env :
16
- GITHUB_WORKSPACE : /
17
- - name : Set up python
18
- uses : actions/setup-python@v2
19
- with :
20
- python-version : ' 3.8'
21
15
- name : Run 'pr' target
22
16
run : make pr
17
+
18
+ alpine :
19
+ runs-on : ubuntu-latest
20
+
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - name : Run alpine integration tests
24
+ run : DISTRO=alpine make test-integ
25
+
26
+ amazonlinux :
27
+ runs-on : ubuntu-latest
28
+
29
+ steps :
30
+ - uses : actions/checkout@v2
31
+ - name : Run amazonlinux integration tests
32
+ run : DISTRO=amazonlinux make test-integ
33
+
34
+ centos :
35
+ runs-on : ubuntu-latest
36
+
37
+ steps :
38
+ - uses : actions/checkout@v2
39
+ - name : Run centos integration tests
40
+ run : DISTRO=centos make test-integ
41
+
42
+ debian :
43
+ runs-on : ubuntu-latest
44
+
45
+ steps :
46
+ - uses : actions/checkout@v2
47
+ - name : Run debian integration tests
48
+ run : DISTRO=debian make test-integ
49
+
50
+ ubuntu :
51
+ runs-on : ubuntu-latest
52
+
53
+ steps :
54
+ - uses : actions/checkout@v2
55
+ - name : Run ubuntu integration tests
56
+ run : DISTRO=ubuntu make test-integ
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ test-smoke: setup-codebuild-agent
21
21
22
22
.PHONY : test-integ
23
23
test-integ : setup-codebuild-agent
24
- CODEBUILD_IMAGE_TAG=codebuild-agent tests/integration/codebuild-local/test_all.sh tests/integration/codebuild/.
24
+ CODEBUILD_IMAGE_TAG=codebuild-agent DISTRO= " $( DISTRO ) " tests/integration/codebuild-local/test_all.sh tests/integration/codebuild/.
25
25
26
26
.PHONY : check-security
27
27
check-security :
@@ -41,7 +41,9 @@ dev: init test
41
41
42
42
# Verifications to run before sending a pull request
43
43
.PHONY : pr
44
- pr : init check-format check-security dev test-smoke
44
+ pr : init check-format check-security dev setup-codebuild-agent
45
+ CODEBUILD_IMAGE_TAG=codebuild-agent DISTRO=" $( DISTRO) " tests/integration/codebuild-local/test_all.sh tests/integration/codebuild
46
+
45
47
46
48
.PHONY : clean
47
49
clean :
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ set -euo pipefail
5
5
6
6
CODEBUILD_IMAGE_TAG=" ${CODEBUILD_IMAGE_TAG:- al2/ x86_64/ standard/ 3.0} "
7
7
DRYRUN=" ${DRYRUN-0} "
8
+ DISTRO=" ${DISTRO:= " " } "
8
9
9
10
function usage {
10
11
echo " usage: test_all.sh buildspec_yml_dir"
@@ -51,10 +52,12 @@ main() {
51
52
usage
52
53
exit 1
53
54
fi
54
-
55
+
55
56
BUILDSPEC_YML_DIR=" $1 "
57
+ echo $DISTRO $BUILDSPEC_YML_DIR
58
+ ls $BUILDSPEC_YML_DIR
56
59
HAS_YML=0
57
- for f in " $BUILDSPEC_YML_DIR " /* .yml ; do
60
+ for f in " $BUILDSPEC_YML_DIR " /* " $DISTRO " * .yml ; do
58
61
[ -f " $f " ] || continue ;
59
62
do_one_yaml " $f "
60
63
HAS_YML=1
Original file line number Diff line number Diff line change 19
19
- " 3.14"
20
20
- " 3.15"
21
21
RUNTIME_VERSION :
22
- - " 3.7"
23
22
- " 3.8"
24
23
- " 3.9"
25
24
- " 3.10"
Original file line number Diff line number Diff line change 17
17
DISTRO_VERSION :
18
18
- " 7"
19
19
RUNTIME_VERSION :
20
- - " 3.7"
21
20
- " 3.8"
22
21
- " 3.9"
23
22
- " 3.10"
Original file line number Diff line number Diff line change 18
18
- " buster"
19
19
- " bullseye"
20
20
RUNTIME_VERSION :
21
- - " 3.7"
22
21
- " 3.8"
23
22
- " 3.9"
24
23
- " 3.10"
Original file line number Diff line number Diff line change 18
18
- " 20.04"
19
19
- " 22.04"
20
20
RUNTIME_VERSION :
21
- - " 3.7"
22
21
- " 3.8"
23
22
- " 3.9"
24
23
- " 3.10"
You can’t perform that action at this time.
0 commit comments