Skip to content

chore: Add Storybook and Chromatic #36

chore: Add Storybook and Chromatic

chore: Add Storybook and Chromatic #36

Workflow file for this run

name: Pull Request
on: pull_request
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Workday/canvas-kit-actions/install@v1
with:
node_version: 18.x
check:
runs-on: ubuntu-latest
needs: 'install'
steps:
- uses: actions/checkout@v3
- uses: Workday/canvas-kit-actions/install@v1
with:
node_version: 18.x
# Keep steps separate for Github Actions annotation matching: https://github.com/actions/setup-node/blob/83c9f7a7df54d6b57455f7c57ac414f2ae5fb8de/src/setup-node.ts#L26-L33
- name: Lint
shell: bash
run: yarn lint
- name: Type Check
shell: bash
run: yarn typecheck
- name: Run Unit Tests
shell: bash
run: yarn test
build:
runs-on: ubuntu-latest
needs: 'install'
steps:
- uses: actions/checkout@v3
- uses: Workday/canvas-kit-actions/install@v1
with:
node_version: 18.x
- name: Build Tokens
run: yarn build:tokens
- name: Build Storybook
run: yarn build-storybook --quiet
- name: Cache Build
id: build-cache
uses: actions/cache@v3
with:
path: docs
key: ${{ runner.os }}-build-${{ github.sha }}