-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (47 loc) · 1.4 KB
/
_actions.yaml
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
49
50
51
52
53
name: Update Workflow
on:
workflow_call:
secrets:
GRAPH_FEDERATOR:
required: true
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Create Test Subgraph schema
run: >
echo "
schema {
query: Query
}
type Query {
_empty: String
}
" > test-schema.graphql
- name: Upload Test Subgraph schema
uses: actions/[email protected]
with:
name: test-update-schema
path: test-schema.graphql
- name: Check Supergraph without App
uses: ./
with:
name: test
routing-url: https://example.com/graphql
subgraph-schema-artifact: test-update-schema
subgraph-schema-filename: test-schema.graphql
supergraph-schema-artifact: compose-supergraph-without-app
publish: false
- name: Check Supergraph with App
uses: ./
with:
name: test
routing-url: https://example.com/graphql
subgraph-schema-artifact: test-update-schema
subgraph-schema-filename: test-schema.graphql
supergraph-schema-artifact: compose-supergraph-with-app
github-app-id: 1010045
github-app-private-key: ${{ secrets.GRAPH_FEDERATOR }}
publish: false