Skip to content

feat: allow context to be passed as null #62

feat: allow context to be passed as null

feat: allow context to be passed as null #62

Workflow file for this run

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