스토리북 chromatic 배포 분리 및 설정 구현 #7
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: UI Package Test | |
on: | |
pull_request: | |
branches: [main, develop] | |
pull_request_target: | |
types: [synchronize] | |
branches: | |
- main | |
- develop | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/ui | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Setup Yarn | |
run: | | |
corepack enable | |
corepack prepare [email protected] --activate | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Run tests | |
run: | | |
yarn add -D jest @testing-library/jest-dom @testing-library/dom @testing-library/react | |
yarn test |