generated from React-Avancado/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.08 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
name: Cypress
on:
workflow_run:
workflows: [CI]
types:
- completed
branches:
- main
jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4.2.2
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
version: 9.13.2
run_install: false
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: 20.x
- name: Install dependencies
run: pnpm i --no-frozen-lockfile
- name: Cypress run
uses: cypress-io/github-action@v6.7.10
with:
build: pnpm build
start: pnpm start
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
record: true
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}