-
Notifications
You must be signed in to change notification settings - Fork 173
69 lines (65 loc) · 2.6 KB
/
setupScripts.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
on:
schedule:
- cron: "0 6 * * 1"
name: Test Setup Scripts
jobs:
angular:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- run: |
OUT=$(bash ./test/setuptests.sh @angular/cli 4200 http://localhost:4200/ https://raw.githubusercontent.com/SAP/luigi/main/scripts/setup/angular.sh | tee /dev/fd/2)
RES=$(grep -c "Stopping webserver on port 4200" <<< "$OUT")
echo "$RES"
if [ $RES == 1 ]; then exit 0; else exit 1; fi
vue:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- run: |
OUT=$(bash ./test/setuptests.sh @vue/cli 8080 http://localhost:8080/ https://raw.githubusercontent.com/SAP/luigi/main/scripts/setup/vue.sh | tee /dev/fd/2)
RES=$(grep -c "Stopping webserver on port 8080" <<< "$OUT")
echo "$RES"
if [ $RES == 1 ]; then exit 0; else exit 1; fi
react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- run: |
OUT=$(bash ./test/setuptests.sh 'react-cli react' 3000 http://localhost:3000/ https://raw.githubusercontent.com/SAP/luigi/main/scripts/setup/react.sh | tee /dev/fd/2)
RES=$(grep -c "Stopping webserver on port 3000" <<< "$OUT")
echo "$RES"
if [ $RES == 1 ]; then exit 0; else exit 1; fi
ui5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- run: |
OUT=$(bash ./test/setuptests.sh @ui5/cli 8080 http://localhost:8080/index.html#/home https://raw.githubusercontent.com/SAP/luigi/main/scripts/setup/openui5.sh | tee /dev/fd/2)
RES=$(grep -c "Stopping webserver on port 8080" <<< "$OUT")
echo "$RES"
if [ $RES == 1 ]; then exit 0; else exit 1; fi
vanilla:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.15.0'
- run: |
OUT=$(bash ./test/setuptests.sh ' ' 8080 http://localhost:8080/ https://raw.githubusercontent.com/SAP/luigi/main/scripts/setup/no-framework.sh | tee /dev/fd/2)
RES=$(grep -c "Stopping webserver on port 8080" <<< "$OUT")
echo "$RES"
if [ $RES == 1 ]; then exit 0; else exit 1; fi