Skip to content

[core] More global contexts #288

[core] More global contexts

[core] More global contexts #288

Workflow file for this run

name: Continuous Integration
on: pull_request
jobs:
unit-test:
strategy:
fail-fast: false
matrix:
node:
- 18
- 20
name: Unit tests w/ Node.js ${{matrix.node}}.x
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node ${{matrix.node}}.x
uses: actions/setup-node@v1
with:
node-version: ${{matrix.node}}.x
- run: yarn install
- run: yarn test
check-integrity:
name: Check integrity of our files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: '18.19.0'
- run: yarn install
- run: yarn cli integrity
- run: git diff --exit-code && git diff --cached --exit-code || (echo "Please run 'yarn cli integrity' and commit the result." && exit 1)
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: '18.19.0'
- run: yarn install
- run: yarn build:all
- run: yarn typecheck:all
- run: yarn format
- run: git diff --exit-code && git diff --cached --exit-code || (echo "Please run 'yarn format' and commit the result." && exit 1)