From 8307e5e2b4908d32ed126627d09b14e70ab96a42 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Thu, 20 Jun 2024 17:28:24 +0100 Subject: [PATCH] Runn all GraphQL versions in same CI process --- .github/workflows/tests.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b6d73f0..f76d554 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,7 +28,6 @@ jobs: strategy: matrix: node-version: [18.x, 20.x] - graphql-version: [15.x, 16.x, ^17.0.0-alpha.3] steps: - uses: actions/checkout@v4 @@ -39,6 +38,12 @@ jobs: cache: "npm" - run: yarn - run: yarn build - # We must build BEFORE we replace the GraphQL version (because otherwise the types don't match) - - run: yarn add graphql@${{ matrix.graphql-version }} - - run: yarn test + + - name: "Test" + run: yarn test + + - name: "Test with GraphQL 15" + run: yarn add graphql@15.x && yarn test + + - name: "Test with GraphQL 17" + run: yarn add graphql@^17.0.0-alpha.3 && yarn test