-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 944 Bytes
/
ci.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
name: Tests suit
on: [pull_request]
jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Build project
run: bun install -y && bun run build
- name: Unit tests
run: bun run jest:run
- name: Cypress App tests
uses: cypress-io/github-action@v2
with:
start: bun run start
wait-on: http://localhost:3000
browser: chrome
config: baseUrl=http://localhost:3000,integrationFolder=cypress/integration,testFiles=**/*.*
- name: Cypress Storybook tests
uses: cypress-io/github-action@v2
with:
start: bun run storybook:start
wait-on: http://localhost:6006
browser: chrome
config: baseUrl=http://localhost:6006,integrationFolder=playground,testFiles=**/*.e2e.*