-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (43 loc) · 1.19 KB
/
cypress-ci.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
name: Cypress E2E
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
cypress-e2e:
runs-on: ubuntu-latest
# runs all of the steps inside the specified container rather than on the VM host.
# Because of this the network configuration changes from host based network to a container network.
container:
image: cypress/included:10.8.0
services:
mongodb:
image: mongo
ports:
- 27017:27017
env:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: pass
ldap:
image: rroemhild/test-openldap
ports:
- "389:389"
- "636:636"
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile
- run: yarn build --prod
- run: TESTING=true LIMIT_REQUESTS=6 yarn run nx e2e artemis-web-e2e --browser chrome --prod
env:
MONGODB_HOST: mongodb
MONGODB_PORT: ${{ job.services.mongodb.ports[27017] }}
- name: "Upload Artifact"
if: failure()
uses: actions/upload-artifact@v2
with:
name: cypress
path: dist/cypress
retention-days: 5