Skip to content

Commit

Permalink
feat(graphql): move schema to Github artifact
Browse files Browse the repository at this point in the history
Remove the generated schema from the repository and generate it
automatically on the CI.
  • Loading branch information
gligneul committed Sep 19, 2023
1 parent ffd2372 commit 690f3be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ jobs:
- name: Run tests
run: cargo test

- name: Generate GraphQL schema
run: ./target/debug/generate-schema

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: graphql-schema
path: offchain/schema.graphql
if-no-files-found: error

build_docker:
runs-on: ubuntu-22.04
needs:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Standardized log libraries and configuration
- Moved GraphQL schema generation to the CI. Now it is distributed as a Github artifact

### Removed

Expand Down
File renamed without changes.

0 comments on commit 690f3be

Please sign in to comment.