-
Notifications
You must be signed in to change notification settings - Fork 7
134 lines (106 loc) · 4.92 KB
/
stack-regression-tests-wl.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: stack-regression-tests-wl
on:
pull_request:
branches:
- main
jobs:
stack-validation:
runs-on: ubuntu-latest
steps:
- name: 'Setup: Checkout'
uses: actions/checkout@v2
- name: 'Validate: stack customization and output files content agreement'
run: ./test/stack/build-test.sh wl
stack-tests:
runs-on: ubuntu-latest
needs: stack-validation
steps:
- name: 'Setup: Checkout'
uses: actions/checkout@v2
- name: 'Setup: Install Minikube'
uses: manusa/[email protected]
with:
minikube version: 'v1.25.1'
kubernetes version: 'v1.23.1'
github token: ${{ secrets.GITHUB_TOKEN }}
start args: '--addons=registry --addons=ingress --insecure-registry "10.0.0.0/24"'
- name: 'Setup: Wait for nodes to be ready'
run: |
while [[ $(kubectl get nodes -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do
echo "waiting for nodes" && sleep 1;
done
- name: 'Setup: Install odo'
run: |
sudo curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-amd64 -o /usr/local/bin/odo
sudo chmod +x /usr/local/bin/odo
- name: 'Setup: Print version info'
run: |
set -x
docker version
kubectl version
odo version
minikube version
set +x
- name: 'Setup: Install the Open Liberty operator'
run: ./test/utils.sh installOpenLibertyOperator
- name: 'Setup: Re-build the WebSphere Liberty stack'
run: ./test/utils.sh customizeStack wl
- name: 'Setup: Build the devfile stack image'
run: ./test/utils.sh buildStackImage wl
- name: 'Test: InnerLoop: Maven: Basic'
run: ./test/inner-loop/basic-test.sh wl maven
- name: 'Test: InnerLoop: Maven: Basic with mvnw'
run: ./test/inner-loop/basic-mvnw-test.sh wl maven
- name: 'Test: InnerLoop: Gradle: Basic'
run: ./test/inner-loop/basic-test.sh wl gradle
- name: 'Test: InnerLoop: Maven: Devfile regression'
if: success() || failure()
run: ./test/inner-loop/devfile-regression-test.sh wl maven
- name: 'Test: InnerLoop: Gradle: Devfile regression'
if: success() || failure()
run: ./test/inner-loop/devfile-regression-test.sh wl gradle
- name: 'Test: InnerLoop: Maven: microprofile v3 regression'
if: success() || failure()
run: ./test/inner-loop/mp3-regression-test.sh wl maven
- name: 'Test: InnerLoop: Gradle: microprofile v3 regression'
if: success() || failure()
run: ./test/inner-loop/mp3-regression-test.sh wl gradle
- name: 'Test: InnerLoop: Maven: Uses an official Maven image'
if: success() || failure()
run: ./test/inner-loop/build-type-image-test.sh wl maven
- name: 'Test: InnerLoop: Gradle: Uses an official Gradle image'
if: success() || failure()
run: ./test/inner-loop/build-type-image-test.sh wl gradle
- name: 'Test: InnerLoop: Maven: m2 parent sample regression'
if: success() || failure()
run: ./test/inner-loop/sample-m2-parent-test.sh wl maven
- name: 'Test: InnerLoop: Maven: Parent plugin'
if: success() || failure()
run: ./test/inner-loop/parent-plugin-test.sh wl maven
- name: 'Test: InnerLoop: Maven: multi-module'
if: success() || failure()
run: ./test/inner-loop/multi-module.sh wl maven
- name: 'Test: OuterLoop: Maven: Basic'
if: success() || failure()
run: ./test/outer-loop/basic-test.sh wl maven
- name: 'Test: OuterLoop: Gradle: Basic'
if: success() || failure()
run: ./test/outer-loop/basic-test.sh wl gradle
- name: 'Test: OuterLoop: Maven: Docker build MPH-off SCC-off args'
if: success() || failure()
run: ./test/outer-loop/docker-build-mphOff-sccOff-test.sh wl maven
- name: 'Test: OuterLoop: Gradle: Docker build MPH-off SCC-off args'
if: success() || failure()
run: ./test/outer-loop/docker-build-mphOff-sccOff-test.sh wl gradle
- name: 'Test: OuterLoop: Maven: Docker build with MPH-on SCC-off args'
if: success() || failure()
run: ./test/outer-loop/docker-build-mphOn-sccOff-test.sh wl maven
- name: 'Test: OuterLoop: Gradle: Docker build with MPH-on SCC-off args'
if: success() || failure()
run: ./test/outer-loop/docker-build-mphOn-sccOff-test.sh wl gradle
- name: 'Test: OuterLoop: Maven: Docker build with MPH-off SCC-on args'
if: success() || failure()
run: ./test/outer-loop/docker-build-mphOff-sccOn-test.sh wl maven
- name: 'Test: OuterLoop: Gradle: Docker build with MPH-off SCC-on args'
if: success() || failure()
run: ./test/outer-loop/docker-build-mphOff-sccOn-test.sh wl gradle