-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (58 loc) · 1.87 KB
/
ci.yaml
File metadata and controls
62 lines (58 loc) · 1.87 KB
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
54
55
56
57
58
59
60
61
62
name: CI
on: push
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
directory: [
"solutions/01-how-a-graphql-server-works",
"exercices/02-type-system-flexibility",
"solutions/02-type-system-flexibility",
"exercices/04-arguments-and-variables",
"exercices/07-node",
"exercices/08-lists-pagination",
]
steps:
- uses: actions/checkout@v2
- name: Test ${{ matrix.directory }}
working-directory: ${{ matrix.directory }}
run: |
yarn install
yarn dump-graphql-schema
if [[ $(git diff -G. --name-only *.graphql | wc -c) -ne 0 ]]; then echo "The schema is not up to date with the code !" && exit 1; fi
yarn test --ci
test-with-db:
runs-on: ubuntu-latest
concurrency:
group: need_supabase
cancel-in-progress: true
strategy:
fail-fast: false
max-parallel: 1
matrix:
directory: [
"exercices/03-a-complete-graphql-server",
"solutions/03-a-complete-graphql-server",
"solutions/04-arguments-and-variables",
"exercices/05-union-and-interface",
"solutions/05-union-and-interface",
"exercices/06-mutations",
"solutions/06-mutations",
"solutions/07-node",
"solutions/08-lists-pagination"
]
steps:
- uses: actions/checkout@v2
- name: Test ${{ matrix.directory }}
working-directory: ${{ matrix.directory }}
run: |
yarn install
yarn dump-graphql-schema
if [[ $(git diff -G. --name-only *.graphql | wc -c) -ne 0 ]]; then echo "The schema is not up to date with the code !" && exit 1; fi
yarn populate-database
yarn test --ci