-
Notifications
You must be signed in to change notification settings - Fork 595
53 lines (41 loc) · 1.06 KB
/
cypress.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
50
51
52
53
name: Cypress Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
cypress-run:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node16.16.0-chrome107-ff107
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 7
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: pnpm install
- name: Build nuka-carousel
run: pnpm build
- name: Install the Cypress binary
run: npx cypress install
- name: Cypress run
run: pnpm run test:ci-with-server
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: ./packages/nuka/cypress/screenshots
- uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos
path: ./packages/nuka/cypress/videos