From d47d048a4f3bb31f1fead85eb0ae851f7dbee3a4 Mon Sep 17 00:00:00 2001 From: dotasek Date: Tue, 9 May 2023 16:25:55 -0400 Subject: [PATCH] Update smoke-tests.yml Don't do integration tests. Start server Run smoke tests Stop Server --- .github/workflows/smoke-tests.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 0467b36..f203856 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -15,7 +15,7 @@ on: - "charts/**" jobs: - build: + build_and_smoke_test: runs-on: ubuntu-latest @@ -27,8 +27,17 @@ jobs: with: java-version: 17 - 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 run: | curl -f -L -o ijhttp.zip "https://jb.gg/ijhttp/latest" 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 +