Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Убрана публикация branch варинта схемы в Apollo Studio #81

Merged
merged 3 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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