-
-
Notifications
You must be signed in to change notification settings - Fork 965
33 lines (30 loc) · 871 Bytes
/
cypress.yml
File metadata and controls
33 lines (30 loc) · 871 Bytes
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
name: Cypress Tests
on:
push:
branches: [main]
pull_request_target:
types: [labeled, opened, synchronize, reopened]
concurrency:
group: environment-${{ github.ref }}
cancel-in-progress: true
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Packages
uses: ./.github/actions/install-dependencies
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v6
with:
install-command: |
pnpm install
start: pnpm start
wait-on: "http://localhost:3000"
browser: chrome
env:
# pass GitHub token to detect new build vs re-run build
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}