Skip to content

chore(deps): lock file maintenance #416

chore(deps): lock file maintenance

chore(deps): lock file maintenance #416

Workflow file for this run

name: Unit tests
on:
push:
branches:
- main
- next
pull_request:
branches:
- main
- next
jobs:
test-node:
name: Test on Node.js v${{ matrix.node-version }}
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: install
run: yarn
- name: run eslint
run: yarn lint
- name: run prettylint
run: yarn prettylint
- name: run typecheck
run: yarn typecheck
- name: run build
run: yarn build
- name: run tests
run: yarn test --coverage
env:
CI: true
test-os:
name: Test on ${{ matrix.os }} using Node.js LTS
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: yarn
- name: install
run: yarn
- name: run prettylint
run: yarn prettylint
- name: run typecheck
run: yarn typecheck
- name: run build
run: yarn build
- name: run tests
run: yarn test --coverage
env:
CI: true
release:
if:
# prettier-ignore
${{ github.event_name == 'push' && (github.event.ref == 'refs/heads/main' || github.event.ref == 'refs/heads/next') }}
needs:
- test-node
- test-os
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: yarn
- name: install
run: yarn
- name: run build
run: yarn build
- run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}