-
Notifications
You must be signed in to change notification settings - Fork 190
48 lines (40 loc) · 1.11 KB
/
cypress-tests.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
name: E2E Tests
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [edge]
paths-ignore: ["**.md"]
pull_request:
paths-ignore: ["**.md"]
jobs:
cypress-run:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and Run Application
uses: isbang/[email protected]
with:
compose-file: |
docker-compose.yml
docker-compose.test.yml
compose-flags: "--env-file test.env"
- name: Check Application Health
uses: jtalk/url-health-check-action@v3
with:
url: http://localhost/api/v3/testConnection
max-attempts: 10
retry-delay: 10s
- name: Dump Application Logs
if: failure()
run: |
echo "Health check failed. Dumping Docker logs..."
docker-compose logs
- name: Cypress Run
uses: cypress-io/github-action@v5
with:
config: baseUrl=http://localhost
spec: cypress/e2e/!(third-party)/**/*.cy.js
working-directory: e2e