-
Notifications
You must be signed in to change notification settings - Fork 1.7k
55 lines (48 loc) · 1.4 KB
/
pr-graphql-compat-check.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
49
50
51
52
53
54
55
name: Build & Test PR w/ GraphQL Regressions
on:
push:
# only on merge to main.
# it's rare that this workflow would
# show us an error, but when it does it's important!
branches:
- main
# don't run this regression suite if we don't need to
paths-ignore:
- '**.md'
- 'examples'
- '!examples/monaco-graphql-webpack'
# TODO: test matrix?
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
name: Build & Test
runs-on: ubuntu-20.04
strategy:
matrix:
release:
# test against the latest 16.x version, which might be newer than what we have
- '^16'
# test against the oldest version we support
- '^16.0.0'
# test against the latest alpha
- '^17.0.0-alpha'
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: node_modules-${{hashFiles('yarn.lock')}}
restore-keys: node_modules-
- name: Force GraphQL ${{ matrix.release }} solution
run: yarn repo:resolve graphql@${{ matrix.release }}
- run: yarn install --frozen-lockfile --immutable
- name: Unit Tests
run: yarn test:ci
- name: Cypress
run: yarn e2e