-
Notifications
You must be signed in to change notification settings - Fork 1.3k
49 lines (47 loc) · 1.25 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Lint and test
on:
pull_request:
branches: [main]
workflow_call:
jobs:
lint:
name: Lint & Type Checking
runs-on: ubuntu-latest
steps:
- name: Checkout next branch
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/composite-actions/install-dependencies
- name: Lint & Type Checking
run: |
npm run lint
test-jest:
name: Test jest
needs: [lint]
runs-on: ubuntu-latest
steps:
- name: Checkout next branch
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/composite-actions/install-dependencies
- name: run unit test
run: |
npm run test
test-playwright:
name: Test playwright
needs: [lint]
runs-on: ubuntu-latest
steps:
- name: Checkout next branch
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/composite-actions/install-dependencies
- name: Install playwright dependencies
run: |
npx playwright install --with-deps
- name: Build storybook
run: |
npm run storybook:build -w "@toast-ui/calendar"
- name: Run E2E test
run: |
npm run test:playwright