Slider 컴포넌트 기본 기능 구현 #114
Workflow file for this run
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: "Chromatic UI Test" | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
branches: | |
- "*" | |
jobs: | |
a11y-test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- uses: pnpm/action-setup@v4 | |
with: | |
run_install: | | |
- recursive : true | |
- name: Install Playwright | |
run: pnpm ui install playwright | |
- name: Build Storybook | |
run: pnpm ui build-storybook | |
- name: Serve Storybook and run tests | |
run: | | |
pnpx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ | |
"pnpx http-server ./packages/ui/storybook-static --port 6006" \ | |
"pnpx wait-on http://127.0.0.1:6006 && pnpm ui test-storybook" | |
chromatic: | |
name: Run Chromatic | |
needs: a11y-test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Install dependencies | |
# ⚠️ See your package manager's documentation for the correct command to install dependencies in a CI environment. | |
run: pnpm install | |
- name: Run Chromatic | |
uses: chromaui/action@latest | |
with: | |
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |