-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.22 KB
/
Copy pathcypress.yml
File metadata and controls
49 lines (44 loc) · 1.22 KB
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
name: Cypress tests
on: push
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 21
# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: rm -rf node_modules && yarn install --frozen-lockfile
- name: Run eslint
run: yarn run eslint
- name: Run prettier
run: yarn prettier --check .
cypress-run:
runs-on: ubuntu-22.04
name: Cypress Testing
steps:
- name: Checkout
uses: actions/checkout@v4
- name: "Create env file"
run: |
touch .env
echo USE_CACHE=false >> .env
cat .env
- name: Cypress run
uses: cypress-io/github-action@v6
with:
working-directory: ./tests
start: docker compose up -d
wait-on: "http://localhost"
wait-on-timeout: 120
- name: Upload screenshots
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: tests/cypress/screenshots