-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.19 KB
/
main.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: integrations tests
on: [push]
jobs:
smoke:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node v20
uses: actions/setup-node@v4
with:
node-version: 20.11.0 # match .tool-versions file
- name: Cypress integration tests
uses: cypress-io/github-action@v6
with:
start: npm run build:serve
wait-on: 'http://localhost:9000'
wait-on-timeout: 500 # seconds = 6 mins
config: 'baseUrl=http://localhost:9000'
validation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node v20
uses: actions/setup-node@v4
with:
node-version: 20.11.0 # match .tool-versions file
- name: Cypress data validation
uses: cypress-io/github-action@v6
with:
env: VALIDATE_ALL=true # corresponds to CYPRESS_VALIDATE_ALL env var
spec: cypress/e2e/zz-validate-data.cy.js
start: npm run build:serve:9001
wait-on: 'http://localhost:9001'
wait-on-timeout: 500 # seconds = 6 mins
config: 'baseUrl=http://localhost:9001'