Skip to content

Commit

Permalink
Add CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Sep 23, 2024
1 parent 647e3cb commit 3ba86d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ jobs:
matrix:
crate:
- juniper
- juniper_axum
target:
- wasm32-unknown-unknown
- wasm32-wasi
Expand All @@ -289,10 +290,13 @@ jobs:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}

- name: Switch Cargo workspace to `resolver = "2"`
run: sed -i 's/resolver = "1"/resolver = "2"/' Cargo.toml

- run: cargo check --target ${{ matrix.target }} -p ${{ matrix.crate }}
${{ matrix.target == 'wasm32-unknown-unknown'
&& '--features js'
|| '' }}
${{ (matrix.crate == 'juniper' && matrix.target == 'wasm32-unknown-unknown')
&& '--features js'
|| '' }}



Expand Down
2 changes: 1 addition & 1 deletion juniper_axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rustdoc-args = ["--cfg", "docsrs"]
subscriptions = ["axum/ws", "juniper_graphql_ws/graphql-ws", "dep:futures"]

[dependencies]
axum = { version = "0.7", default-features = false, features = ["json", "query"] }
axum = { version = "0.7", features = ["json", "query"], default-features = false }
futures = { version = "0.3.22", optional = true }
juniper = { version = "0.16", path = "../juniper", default-features = false }
juniper_graphql_ws = { version = "0.4.0", path = "../juniper_graphql_ws", features = ["graphql-transport-ws"] }
Expand Down

0 comments on commit 3ba86d6

Please sign in to comment.