Skip to content

Backport changes from canary #1581

Backport changes from canary

Backport changes from canary #1581

Workflow file for this run

name: CI
on: [push]
jobs:
build:
name: Build, lint, and test
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 0 # Required for Chromatic to retrieve full git history
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Lint
run: npm run lint
- name: Test
run: npm test --ci --coverage --maxWorkers=2
- name: Build
run: npm run build
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}