This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
Use @storybook/auto-config as postinstall (#82) #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run test suite | |
on: | |
push: | |
branches: | |
- main | |
- next | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set node version to ${{ matrix.node_version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
cache: "npm" | |
- name: Install dependencies | |
run: yarn | |
- name: Run Vitest | |
run: yarn test --run |