From 3a5222780816ba6bd7cc3c97296b176648e57069 Mon Sep 17 00:00:00 2001 From: Mathis Burger Date: Thu, 7 Mar 2024 16:19:08 +0100 Subject: [PATCH] [TASK] Updated workflow for graphQL schema --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3debc2a..ba75fc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v4 - - name: Setup Gradle + - name: Setup Java uses: actions/setup-java@v4 with: distribution: 'temurin' @@ -35,4 +35,9 @@ jobs: - name: Build with Gradle run: ./gradlew build -Dquarkus.package.type=uber-jar - name: Start application - run: nohub ./gradlew --console=plain quarkusDev & \ No newline at end of file + run: | + nohup ./gradlew --console=plain quarkusDev & + for attempt in {1..20}; do sleep 1; if curl http://localhost:8080/; then echo ready; break; fi; echo waiting...; done + + - name: Get graphQL schema + run: curl http://localhost:8080/graphql/schema.graphql >> web/schema.graphql \ No newline at end of file