-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (50 loc) · 1.39 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
name: Cypress Tests
on:
[push]
jobs:
cypress-component-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
npm-version: '10'
- name: Update npm and clear cache
run: |
npm install -g npm@latest
npm cache clean --force
- name: Install dependencies
run: npm ci
- name: Run Cypress component tests
run: npx cypress run-ct
cypress-e2e-tests:
runs-on: ubuntu-latest
env:
CYPRESS_BASE_URL: 'https://lucky-poetry-9761.on.fleek.co'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install wait-on with npm
run: npm install wait-on
- name: Install Cypress with npm
run: npm install cypress
- name: Update npm and clear cache
run: |
npm install -g npm@latest
npm cache clean --force
- name: Install project dependencies with npm
run: npm ci
- name: Run Cypress E2E tests
run: |
npx cypress run
- name: Debug Information
run: |
echo "CYPRESS_BASE_URL: $CYPRESS_BASE_URL"
# Add more debugging commands as needed