-
Notifications
You must be signed in to change notification settings - Fork 38
66 lines (63 loc) · 1.59 KB
/
Copy pathci.yml
File metadata and controls
66 lines (63 loc) · 1.59 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
63
64
65
66
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
strategy:
fail-fast: false
matrix:
check:
- format
- lint
- spell
- type
name: Check ${{ matrix.check }}
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Install
run: yarn install --immutable
- name: Check
run: yarn check:${{ matrix.check }}
test:
strategy:
fail-fast: false
matrix:
include:
- graphql: 17
- graphql: 16
name: Test GraphQL v${{ matrix.graphql }}
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Install GraphQL 17 baseline
if: matrix.graphql == 17
run: yarn install --immutable
- name: Install GraphQL 16 compatibility baseline
if: matrix.graphql == 16
run: yarn add --dev graphql@^16
# we default to v17 but support v16, so we want to also make sure the types fit
- if: matrix.graphql == 16
name: Check types
run: yarn check:type
- name: Test
run: yarn test