Skip to content

Commit

Permalink
Update to Fed 2.8.1 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
smyrick authored Jun 21, 2024
1 parent 8ea0754 commit 2ea815b
Show file tree
Hide file tree
Showing 6 changed files with 235 additions and 272 deletions.
90 changes: 49 additions & 41 deletions .github/workflows/merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,60 +29,68 @@ jobs:
- uses: apollosolutions/rover-actions/install-rover-cli@v1

- name: Publish checkout schema
working-directory: ./subgraphs/checkout
run: |
rover subgraph publish apollo-retail-supergraph@prod \
--name checkout \
--schema schema.graphql
uses: apollosolutions/rover-actions/subgraph-publish@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: checkout
schema: ./subgraphs/checkout/schema.graphql

- name: Publish discovery schema
working-directory: ./subgraphs/discovery
run: |
rover subgraph publish apollo-retail-supergraph@prod \
--name discovery \
--schema schema.graphql
uses: apollosolutions/rover-actions/subgraph-publish@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: discovery
schema: ./subgraphs/discovery/schema.graphql

- name: Publish inventory schema
working-directory: ./subgraphs/inventory
run: |
rover subgraph publish apollo-retail-supergraph@prod \
--name inventory \
--schema schema.graphql
uses: apollosolutions/rover-actions/subgraph-publish@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: inventory
schema: ./subgraphs/inventory/schema.graphql

- name: Publish orders schema
working-directory: ./subgraphs/orders
run: |
rover subgraph publish apollo-retail-supergraph@prod \
--name orders \
--schema schema.graphql
uses: apollosolutions/rover-actions/subgraph-publish@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: orders
schema: ./subgraphs/orders/schema.graphql

- name: Publish products schema
working-directory: ./subgraphs/products
run: |
rover subgraph publish apollo-retail-supergraph@prod \
--name products \
--schema schema.graphql
uses: apollosolutions/rover-actions/subgraph-publish@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: products
schema: ./subgraphs/products/schema.graphql

- name: Publish reviews schema
working-directory: ./subgraphs/reviews
run: |
rover subgraph publish apollo-retail-supergraph@prod \
--name reviews \
--schema schema.graphql
uses: apollosolutions/rover-actions/subgraph-publish@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: reviews
schema: ./subgraphs/reviews/schema.graphql

- name: Publish shipping schema
working-directory: ./subgraphs/shipping
run: |
rover subgraph publish apollo-retail-supergraph@prod \
--name shipping \
--schema schema.graphql
uses: apollosolutions/rover-actions/subgraph-publish@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: shipping
schema: ./subgraphs/shipping/schema.graphql

- name: Publish users schema
working-directory: ./subgraphs/users
run: |
rover subgraph publish apollo-retail-supergraph@prod \
--name users \
--schema schema.graphql
uses: apollosolutions/rover-actions/subgraph-publish@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: users
schema: ./subgraphs/users/schema.graphql

publish-README:
runs-on: ubuntu-latest
Expand All @@ -92,4 +100,4 @@ jobs:
- uses: apollosolutions/rover-actions/install-rover-cli@v1

- name: Publish README
run: rover readme publish apollo-retail-supergraph@prod --file README.md
run: rover readme publish ${{ vars.APOLLO_GRAPH_REF }} --file README.md
16 changes: 8 additions & 8 deletions .github/workflows/pr-check-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,63 +36,63 @@ jobs:
uses: apollosolutions/rover-actions/subgraph-check@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: apollo-retail-supergraph@prod
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: checkout
schema: ./subgraphs/checkout/schema.graphql

- name: Check discovery subgraph
uses: apollosolutions/rover-actions/subgraph-check@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: apollo-retail-supergraph@prod
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: discovery
schema: ./subgraphs/discovery/schema.graphql

- name: Check inventory subgraph
uses: apollosolutions/rover-actions/subgraph-check@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: apollo-retail-supergraph@prod
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: inventory
schema: ./subgraphs/inventory/schema.graphql

- name: Check orders subgraph
uses: apollosolutions/rover-actions/subgraph-check@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: apollo-retail-supergraph@prod
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: orders
schema: ./subgraphs/orders/schema.graphql

- name: Check products subgraph
uses: apollosolutions/rover-actions/subgraph-check@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: apollo-retail-supergraph@prod
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: products
schema: ./subgraphs/products/schema.graphql

- name: Check reviews subgraph
uses: apollosolutions/rover-actions/subgraph-check@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: apollo-retail-supergraph@prod
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: reviews
schema: ./subgraphs/reviews/schema.graphql

- name: Check shipping subgraph
uses: apollosolutions/rover-actions/subgraph-check@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: apollo-retail-supergraph@prod
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: shipping
schema: ./subgraphs/shipping/schema.graphql

- name: Check users subgraph
uses: apollosolutions/rover-actions/subgraph-check@v1
with:
apollo-key: ${{ secrets.APOLLO_KEY }}
graph-ref: apollo-retail-supergraph@prod
graph-ref: ${{ vars.APOLLO_GRAPH_REF }}
name: users
schema: ./subgraphs/users/schema.graphql

Expand Down
Loading

0 comments on commit 2ea815b

Please sign in to comment.