fix(deps): update apollo graphql packages to v2 (major) #1526
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Schema check | |
on: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "subgraphs/**" | |
jobs: | |
subgraph-check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rover-version: ["latest"] | |
subgraph: ["products", "users", "inventory"] | |
env: | |
APOLLO_KEY: ${{ secrets.APOLLO_KEY }} | |
APOLLO_GRAPH_REF: supergraph-router@dev | |
name: ${{ matrix.subgraph }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install rover | |
env: | |
ROVER_VERSION: ${{ matrix.rover-version }} | |
run: | | |
curl -sSL https://rover.apollo.dev/nix/$ROVER_VERSION | sh | |
echo "PATH=$PATH:$HOME/.rover/bin" >> ${GITHUB_ENV} | |
- name: run schema check | |
if: env.APOLLO_KEY != 0 | |
run: | | |
set -x | |
rover subgraph check $APOLLO_GRAPH_REF --schema subgraphs/${{ matrix.subgraph }}/${{ matrix.subgraph }}.graphql --name ${{ matrix.subgraph }} | |
- name: skip check | |
if: env.APOLLO_KEY == 0 | |
run: echo skipping subgraph check due to public repo fork PR not having secrets access. |