Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run all GraphQL versions in same CI process #3

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading