-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run all GraphQL versions in same CI process (#3)
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] && yarn test | ||
|
||
- name: "Test with GraphQL 17" | ||
run: yarn add graphql@^17.0.0-alpha.3 && yarn test |