From b260fbd932638a161afa8176c465c9fd5ee9b118 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=20Erik=20St=C3=B8wer?= <testower@gmail.com>
Date: Mon, 11 Sep 2023 13:51:26 +0200
Subject: [PATCH] Generate schema before running npm scripts

---
 .github/workflows/client-build.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.github/workflows/client-build.yml b/.github/workflows/client-build.yml
index 662c5441c22..c95415debd6 100644
--- a/.github/workflows/client-build.yml
+++ b/.github/workflows/client-build.yml
@@ -18,9 +18,17 @@ jobs:
       - uses: actions/checkout@v3.3.0
         with:
           fetch-depth: 0
+      - name: Set up JDK 17
+        uses: actions/setup-java@v3
+        with:
+          java-version: 17
+          distribution: temurin
+          cache: maven
       - uses: actions/setup-node@v3
         with:
           node-version: 18
+      - name: Generate GraphQL schema
+        run: mvn --batch-mode test -Dtest="TransmodelGraphQLSchemaTest" -P prettierSkip
       - name: Build and test
         working-directory: ./client-next
         run: |