Skip to content

Commit

Permalink
add graphql inspector to check supergraph schema
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Jul 1, 2024
1 parent 7806c23 commit a4c1d5e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/schema-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ jobs:
--config schema/supergraph-config.yaml
--elv2-license=accept
> supergraph.graphql
- name: Check generated schema
uses: kamilkisiela/graphql-inspector@master
with:
schema: supergraph.graphql

- name: Upload Schema Artifact
uses: actions/upload-artifact@v4.3.3
with:
name: supergraph.graphql
path: supergraph.graphql


publish:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
Expand Down Expand Up @@ -60,7 +64,7 @@ jobs:
run: helm package charts/supergraph

- name: Generate Image Name
run: echo IMAGE_REPOSITORY=oci://ghcr.io/$(echo "${{ github.repository }}-supergraph/latest" | tr '[:upper:]' '[:lower:]' | tr '[_]' '[\-]') >> $GITHUB_ENV
run: echo IMAGE_REPOSITORY=oci://ghcr.io/$(echo "${{ github.repository }}-supergraph" | tr '[:upper:]' '[:lower:]' | tr '[_]' '[\-]') >> $GITHUB_ENV

- name: Log in to GitHub Docker Registry
if: github.event_name != 'pull_request'
Expand All @@ -70,10 +74,6 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Chart with latest
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: helm push $(ls supergraph-*.tgz) ${{ env.IMAGE_REPOSITORY }}

- name: Publish Chart with stable
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
- name: Publish Chart
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: helm push $(ls supergraph-*.tgz) ${{ env.IMAGE_REPOSITORY }}

0 comments on commit a4c1d5e

Please sign in to comment.