feat: allow context to be passed as null #62
This file contains hidden or 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: Test and Build | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Node.js (${{ matrix.node-version }}) | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Install dependencies (Node 16.x) | |
if: matrix.node-version == '16.x' | |
run: yarn install --frozen-lockfile --ignore-engines | |
- name: Install dependencies (Node 18.x and 20.x) | |
if: matrix.node-version != '16.x' | |
run: yarn install --frozen-lockfile | |
- name: Check format | |
run: yarn check-format | |
- name: Run tests | |
run: yarn test | |
- name: Build | |
run: yarn build |