-
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (46 loc) · 1.33 KB
/
action-test.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
45
46
47
48
name: Action Test
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
local-test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
if: ${{ !env.ACT }}
with:
node-version: 16
cache: npm
- uses: actions/setup-node@v2
if: ${{ env.ACT }}
with:
node-version: 16
- name: Install
run: npm install --prefer-offline
- name: Build
run: npm run build
- name: Upload schema
uses: ./
with:
title: Test API
graph: apollo-schema-check-action-test
variant: current
localSchemaFile: test/fixtures/test-schema.graphql
validationPeriod: P1M
apolloKey: ${{ secrets.APOLLO_KEY_TEST }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload federated schema
uses: ./
with:
title: Federated Test API
graph: apollo-schema-check-action-federated-test
variant: current
localSchemaFile: test/fixtures/test-schema.graphql
serviceName: test-service
validationPeriod: P1M
apolloKey: ${{ secrets.APOLLO_KEY_FEDERATED_TEST }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}