generated from theholocron/node-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.05 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
name: Test
on:
- push
jobs:
setup:
uses: ./.github/workflows/setup.workflow.yml
with:
fetch-depth: 0
# Run visual and composition tests with Chromatic
visual-and-composition:
needs: setup
runs-on: ubuntu-latest
steps:
- id: test-visual-composition
name: Test Visual and Composition
uses: ./.github/workflows/chromatic.workflow.yml
# Run interaction and accessibility tests
interaction-and-accessibility:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Build Storybook
run: npm run 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 && npm run test:storybook"
# Run user flow tests with Cypress
user-flow:
needs: setup
runs-on: ubuntu-latest
steps:
- id: test-user-flow
name: Test User Flow
uses: ./.github/workflows/cypress.workflow.yml