Skip to content

Merge branch 'graphql:main' into main #1

Merge branch 'graphql:main' into main

Merge branch 'graphql:main' into main #1

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: ['15.5.3', '^15.8.0', '16.1.0', '16.2.0', '16.3.0']
steps:
- name: Checkout Code
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: 16
- name: Cache node modules
uses: actions/cache@v3
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