-
Notifications
You must be signed in to change notification settings - Fork 71
39 lines (37 loc) · 1.05 KB
/
integration-tests.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
name: Cypress Tests
run-name: ${{github.event.pull_request.title}} (${{ github.event.pull_request.number }}) by @${{ github.triggering_actor }} (Attempt ${{ github.run_attempt }})
on:
push:
branches: [main]
pull_request:
branches: [main]
paths-ignore:
- '**.md'
- 'LICENSE'
- 'CODEOWNERS'
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: pnpm/[email protected]
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Build assets
run: VITE_MODE=test pnpm run build:local
- name: Run Cypress tests
uses: cypress-io/github-action@v2
with:
install: false
start: pnpm run preview:local
wait-on: 'pnpm dlx wait-on --timeout 60000 tcp:3000'
wait-on-timeout: 120
browser: chrome
record: true
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
VITE_MODE: test