diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe6252fc7..74be72696 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/CHANGELOG.md b/CHANGELOG.md index 904e3a42c..5b00164a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/offchain/graphql-server/schema.graphql b/offchain/schema.graphql similarity index 100% rename from offchain/graphql-server/schema.graphql rename to offchain/schema.graphql