Skip to content

Commit 32ad831

Browse files
committed
ci: add GitHub Actions workflows for Apollo Check and Apollo Publish
1 parent 1cd44ff commit 32ad831

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/apollo-check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Apollo Check
2+
on:
3+
pull_request:
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
env:
8+
APOLLO_VCS_BRANCH: ${{ github.head_ref }}
9+
APOLLO_VCS_COMMIT: ${{ github.event.pull_request.head.sha }}
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: apollographql-gh-actions/install-rover@v1
13+
- uses: apollographql-gh-actions/rover-subgraph-lint@v1
14+
with:
15+
apollo-key: ${{ secrets.APOLLO_KEY }}
16+
graph-ref: ${{ secrets.APOLLO_GRAPH_REF }}
17+
name: github
18+
schema: ./github.graphql
19+
- uses: apollographql-gh-actions/rover-subgraph-check@v1
20+
with:
21+
apollo-key: ${{ secrets.APOLLO_KEY }}
22+
graph-ref: ${{ secrets.APOLLO_GRAPH_REF }}
23+
name: github
24+
schema: ./github.graphql
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Apollo Publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
environment: apollo
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: apollographql-gh-actions/install-rover@v1
13+
- uses: apollographql-gh-actions/rover-subgraph-publish@v1
14+
with:
15+
apollo-key: ${{ secrets.APOLLO_KEY }}
16+
graph-ref: ${{ secrets.APOLLO_GRAPH_REF }}
17+
name: github
18+
schema: ./github.graphql
19+
no-url: true

0 commit comments

Comments
 (0)