Skip to content

Commit

Permalink
Run all GraphQL versions in same CI process (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie authored Jun 20, 2024
2 parents e02d84f + 8307e5e commit 2b4318c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 [email protected] && yarn test

- name: "Test with GraphQL 17"
run: yarn add graphql@^17.0.0-alpha.3 && yarn test

0 comments on commit 2b4318c

Please sign in to comment.