move back to v16 (#3773) #573
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', '17.0.0-alpha.7'] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- 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 |