-
Notifications
You must be signed in to change notification settings - Fork 0
/
amplify.yml
43 lines (41 loc) · 1.03 KB
/
amplify.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
version: 0.1
backend:
phases:
build:
commands:
- amplifyPush --simple -e $env
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- npm run build:prod
artifacts:
baseDirectory: dist/
files:
- '**/*'
cache:
paths:
- node_modules/**/*
test:
phases:
preTest:
commands:
- npm ci
- npm install wait-on
- npm install mocha mochawesome mochawesome-merge mochawesome-report-generator
- 'npm start & npx wait-on http://127.0.0.1:4200'
test:
commands:
- 'npx cypress run --reporter mochawesome --reporter-options "reportDir=cypress/report/mochawesome-report,overwrite=false,html=false,json=true,timestamp=mmddyyyy_HHMMss"'
postTest:
commands:
- npx mochawesome-merge cypress/report/mochawesome-report/mochawesome*.json > cypress/report/mochawesome.json
artifacts:
baseDirectory: cypress
configFilePath: '**/mochawesome.json'
files:
- '**/*.png'
- '**/*.mp4'