Skip to content

Merge pull request #18 from BuidlerDAO/NIG-431 #19

Merge pull request #18 from BuidlerDAO/NIG-431

Merge pull request #18 from BuidlerDAO/NIG-431 #19

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'
- name: Install dependencies
run: rm -rf node_modules && pnpm install --frozen-lockfile
- name: Build
run: pnpm build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'
- name: Install dependencies
run: rm -rf node_modules && pnpm install --frozen-lockfile
- name: Lint
run: pnpm ci:test:lint
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'
- name: Install dependencies
run: rm -rf node_modules && pnpm install --frozen-lockfile
- name: Test types
run: pnpm ci:test:types
unit:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14.x, 16.x]
os: [ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: Install dependencies
run: rm -rf node_modules && pnpm install --frozen-lockfile
- name: Unit test
run: pnpm ci:test:unit