-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.07 KB
/
checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: PR Checks
on:
pull_request:
branches:
- main
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.19'
- name: Build
run: go build
- name: Test
run: go test
check_schema:
name: Check Schema with Apollo Studio
if: false
needs: [ test ]
runs-on: ubuntu-latest
timeout-minutes: 30
env:
# rename this to a valid subgraph name
SUBGRAPH_NAME: foo-bar
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rover
run: |
curl -sSL https://rover.apollo.dev/nix/latest | sh
echo "$HOME/.rover/bin" >> $GITHUB_PATH
- name: Schema Check
run: rover subgraph check ${{ secrets.APOLLO_GRAPH_REF }} --schema graph/schema.graphqls --name ${{ env.SUBGRAPH_NAME }}
env:
APOLLO_KEY: ${{ secrets.APOLLO_KEY }}