Skip to content

Commit

Permalink
using fixed schema but generating anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
NanezX committed Nov 3, 2023
1 parent b9373ca commit 1d2d812
Show file tree
Hide file tree
Showing 3 changed files with 40,196 additions and 8 deletions.
2 changes: 0 additions & 2 deletions subgraph/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
/subgraph.yaml
/abis/*.json

// Subgraph Schema.json generated
tests/subgraph/query/schema.json

# Rust generated files
/tests/generated/abigen
Expand Down
10 changes: 4 additions & 6 deletions subgraph/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,11 @@
kill -9 $(lsof -t -i :8545)
'');

gen-subgraph-schema = pkgs.writeShellScriptBin "gen-subgraph-schema" (gen-sg-schema)

ci-test = pkgs.writeShellScriptBin "ci-test" (''
# # This build is for generate the schema.json.
# # This in case the subgraph schema.graphql have changes when running tests
# ${gen-sg-schema}
# This build is for generate the schema.json.
# This in case the subgraph schema.graphql have changes when running tests
${gen-sg-schema}
# Run tests in single thread
cargo test -- --test-threads=1 --nocapture;
'');
Expand Down
Loading

0 comments on commit 1d2d812

Please sign in to comment.