-
Notifications
You must be signed in to change notification settings - Fork 39
65 lines (55 loc) · 2.15 KB
/
core-web.unit.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
63
64
65
name: CORE WEB - Unit Tests
on:
pull_request:
paths:
- services/common/**
- services/core-web/**
jobs:
tests-unit-frontend:
name: tests-unit-frontend
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
name: checkout
- uses: actions/cache@v3
name: Cache yarn
with:
path: ./.yarn/cache
key: mds-core-web
restore-keys: mds-core-web
- uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Install Dependencies
run: yarn install
- name: Build Common Package
run: yarn workspace @mds/common build
# - name: Run frontend tests
# run: yarn workspace @mds/core-web test
- name: build-core-web
run: |
NODE_OPTIONS=--max-old-space-size=8072 yarn workspace @mds/core-web build
- name: start-core-web
run: yarn workspace @mds/core-web run http-server-spa build /index.html 3000 &
- name: Run cypress tests
run: yarn workspace @mds/core-web cypress run
env:
CYPRESS_TEST_USER: ${{ secrets.CYPRESS_TEST_USER }}
CYPRESS_TEST_PASSWORD: ${{ secrets.CYPRESS_TEST_PASSWORD }}
CYPRESS_CORE_WEB_TEST_URL: ${{ secrets.CYPRESS_CORE_WEB_TEST_URL }}
CYPRESS_BACKEND: ${{ secrets.CYPRESS_BACKEND }}
CYPRESS_API_URL: ${{ secrets.CYPRESS_API_URL }}
CYPRESS_KEYCLOAK_URL: ${{ secrets.CYPRESS_KEYCLOAK_URL }}
CYPRESS_ENVIRONMENT: ${{ secrets.CYPRESS_ENVIRONMENT }}
CYPRESS_DOC_MAN_URL: ${{ secrets.CYPRESS_DOC_MAN_URL }}
CYPRESS_FILE_SYSTEM_PROVIDER_URL: ${{ secrets.CYPRESS_FILE_SYSTEM_PROVIDER_URL }}
CYPRESS_MATOMO_URL: ${{ secrets.CYPRESS_MATOMO_URL }}
CYPRESS_KEYCLOAK_CLIENT_ID: ${{ secrets.CYPRESS_KEYCLOAK_CLIENT_ID }}
CYPRESS_KEYCLOAK_IDP_HINT: ${{ secrets.CYPRESS_KEYCLOAK_IDP_HINT }}
CYPRESS_KEYCLOAK_RESOURCE: ${{ secrets.CYPRESS_KEYCLOAK_RESOURCE }}
- name: Upload cypress video
uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-recording
path: services/core-web/cypress/videos