Skip to content

Commit

Permalink
Merge pull request #81 from gooditcollective/fix/check-gql-without-pu…
Browse files Browse the repository at this point in the history
…blish

Убрана публикация branch варинта схемы в Apollo Studio
  • Loading branch information
mxseev authored Feb 1, 2022
2 parents ef07ff9 + 2316e2f commit 06ab857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
File renamed without changes.
10 changes: 2 additions & 8 deletions .github/workflows/schema.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Publish and check GraphQL schema
name: Check GraphQL schema breaking changes

on:
pull_request:
paths: ["src/schema/**"]

jobs:
schema-publish-and-check:
schema-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -14,12 +14,6 @@ jobs:
- name: Install Apollo Rover (cli)
run: npm install --global @apollo/rover

- name: Publish a 'branch' variant of schema
run: rover graph publish ${{ env.APOLLO_GRAPH_ID }}@${{ github.head_ref }} --schema ./src/schema/index.graphql
env:
APOLLO_KEY: ${{ secrets.APOLLO_KEY }}
APOLLO_GRAPH_ID: ${{ secrets.APOLLO_GRAPH_ID }}

- name: Check schema against main variant
run: rover graph check ${{ env.APOLLO_GRAPH_ID }}@main --schema ./src/schema/index.graphql
env:
Expand Down

1 comment on commit 06ab857

@vercel
Copy link

@vercel vercel bot commented on 06ab857 Feb 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.