-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
amplify.yml
36 lines (36 loc) · 961 Bytes
/
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
version: 0.1
frontend:
phases:
preBuild:
commands:
- npm install
build:
commands:
- npm run build
artifacts:
baseDirectory: app
files:
- "**/*"
cache:
paths:
- node_modules/**/*
test:
artifacts:
baseDirectory: cypress
configFilePath: "**/mochawesome.json"
files:
- "**/*.png"
- "**/*.mp4"
phases:
preTest:
commands:
- npm install
- npm install wait-on
- npm install mocha mochawesome mochawesome-merge mochawesome-report-generator
- "npm start & npx wait-on http://127.0.0.1:8080"
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@4 cypress/report/mochawesome-report/*.json > cypress/report/mochawesome.json