Feat: Removed unnecessary stories #79
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 of our action | |
name: "Chromatic" | |
# The event that will trigger the action | |
on: push | |
# What the action will do | |
jobs: | |
# Run interaction tests | |
interaction-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
#π Sets the version of Node.js to use | |
node-version: 20 | |
- name: set yarn version | |
run: yarn set version 1.22.19 | |
- name: Install dependencies | |
run: yarn | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Build Storybook | |
run: yarn build-storybook --quiet | |
- name: Serve Storybook and run tests | |
run: | | |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ | |
"npx http-server storybook-static --port 6006 --silent" \ | |
"npx wait-on tcp:6006 && yarn test-storybook" | |
visual-tests: | |
# The operating system it will run on | |
runs-on: ubuntu-latest | |
# The list of steps that the action will go through | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
#π Fetches all history so Chromatic can compare against previous builds | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
#π Sets the version of Node.js to use | |
node-version: 20 | |
- run: yarn | |
#π Adds Chromatic as a step in the workflow | |
- uses: chromaui/action@v1 | |
# Options required for Chromatic's GitHub Action | |
with: | |
#π Chromatic projectToken, see https://storybook.js.org/tutorials/design-systems-for-developers/react/en/review/ to obtain it | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
token: ${{ secrets.GITHUB_TOKEN }} |