-
Notifications
You must be signed in to change notification settings - Fork 28
52 lines (41 loc) · 1.28 KB
/
cypress-test.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
52
name: Cypress Tests
on:
pull_request:
jobs:
cypress-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.AUTO_RELEASE_PAT || github.token }}
- name: Clear Docker cache
run: |
docker builder prune -af
- name: Execute Shell Script
run: |
chmod +x cypress/start_hyperswitch.sh
sh cypress/start_hyperswitch.sh
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install --force
- name: Make Curl Request
run: |
# Once the service is up, make the actual curl request
response=$(curl --location --request GET 'http://0.0.0.0:8080/health')
echo "Response:"
echo "$response"
- name: Cypress run
uses: cypress-io/github-action@v6
with:
install: false
build: npm run build:test
start: npm run test:start
# spec: cypress/e2e/quick-start/sbx-quick-start.cy.js
# - name: Check Coverage Thresholds
# run: |
# npx nyc check-coverage --lines 50 --functions 50 --branches 50 --statements 50