Recursively merge repo and package options (#1007) #1415
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: PR | |
on: | |
pull_request: | |
branches: [master, next] | |
push: | |
branches: [master, next] | |
concurrency: | |
group: pr-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
name: build (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Node.js from .nvmrc | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version-file: .nvmrc | |
# Guarantee a predictable version of npm for the first round of tests | |
- name: Install npm@10 | |
run: npm install --global npm@10 | |
- run: yarn --immutable | |
- run: yarn build | |
- run: yarn docs:build | |
- run: yarn checkchange --verbose | |
- run: yarn lint | |
- run: yarn test:unit | |
- run: yarn test:func | |
- run: yarn test:e2e |