Skip to content

lint

lint #12

Workflow file for this run

name: Test
on:
push:
branches-ignore:
- main
# Trigger this workflow on PRs created by Changesets by assigning it to
# someone. We need this workaround because PRs created by GitHub Actions do
# not trigger workflows per default.
pull_request:
branches:
- main
types:
- assigned
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "16.13.2"
cache: npm
- name: Install npm
run: npm i -g [email protected]
- name: Install
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm test -- --coverage
- name: Build
run: npm run build