-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (57 loc) · 1.61 KB
/
e2e.yaml
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
53
54
55
56
57
58
59
60
61
62
name: Run E2E tests
on:
pull_request:
types:
- opened
- synchronize
paths:
- app/**
- lambda/**
- docker-compose.yml
- github/workflows/e2e.yaml
env:
CYPRESS_users: ${{ secrets.CYPRESS_USERS }}
CYPRESS_guid: ${{ secrets.CYPRESS_GUID }}
CYPRESS_loginproxy: ${{ secrets.CYPRESS_LOGINPROXY }}
CYPRESS_siteminder: ${{ secrets.CYPRESS_SITEMINDER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_host: 'http://localhost:3000'
CYPRESS_smoketest: true
CYPRESS_localtest: true
CYPRESS_BASE_URL: 'http://localhost:3000'
jobs:
smoke-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: isbang/compose-action@v1.5.1
with:
compose-file: './docker-compose.yml'
- name: E2E Tests
uses: cypress-io/github-action@v6
id: smoke
continue-on-error: false
with:
summary-title: 'E2E tests'
wait-on: 'http://localhost:3000'
wait-on-timeout: 360
install-command: yarn
working-directory: app
spec: |
cypress/e2e/ci/smoke-10-brokenlinks.cy.ts
cypress/e2e/ci/*.cy.ts
browser: electron
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: app/cypress/screenshots/**/*
if-no-files-found: ignore
# - uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: cypress-videos
# path: app/cypress/videos/**/*
# if-no-files-found: ignore