Test Setup Scripts #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
- cron: "0 6 * * 1" | |
name: Test Setup Scripts | |
jobs: | |
angular: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
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@v4 | |
- uses: actions/setup-node@v4 | |
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@v4 | |
- uses: actions/setup-node@v4 | |
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@v4 | |
- uses: actions/setup-node@v4 | |
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@v4 | |
- uses: actions/setup-node@v4 | |
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 |