Update smoke-tests.yml

Don't do integration tests.

Start server
Run smoke tests
Stop Server
This commit is contained in:
dotasek
2023-05-09 16:25:55 -04:00
committed by GitHub
parent e8d1931199
commit d47d048a4f

View File

@@ -15,7 +15,7 @@ on:
- "charts/**" - "charts/**"
jobs: jobs:
build: build_and_smoke_test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -27,8 +27,17 @@ jobs:
with: with:
java-version: 17 java-version: 17
- name: Build with Maven - name: Build with Maven
run: mvn -B package --file pom.xml verify run: mvn -B package --file pom.xml
- name: Download and install HTTP client - name: Download and install HTTP client
run: | run: |
curl -f -L -o ijhttp.zip "https://jb.gg/ijhttp/latest" curl -f -L -o ijhttp.zip "https://jb.gg/ijhttp/latest"
unzip ijhttp.zip unzip ijhttp.zip
- name: Start server with jetty
run: |
mvn jetty:run & export JPA_PROCESS=$!
sleep 20
- name: Execute smoke tests
run: ./ijhttp/ijhttp ./src/test/smoketest/plain_server.http --env-file ./src/test/smoketest/http-client.env.json --env default
- name: Stop server
run: kill $JPA_PROCESS