Input UI 설정, 스토리 북 및 테스트 코드 작성 #18
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: | |
types: [opened, synchronize, reopened] | |
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 |