-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathamplify.yml
44 lines (43 loc) · 1.05 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
44
version: 1
frontend:
phases:
preBuild:
commands:
- nvm use 18
- cd app
- cd client
- yarn install
build:
commands:
- yarn run build
artifacts:
baseDirectory: /app/client/dist
files:
- "**/*"
cache:
paths:
- node_modules/**/*
test:
phases:
preTest:
commands:
- cd app
- cd client
- yarn global add pm2
- yarn global add wait-on
- pm2 start yarn -- run serve
- wait-on http://localhost:3000
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
- pm2 kill
artifacts:
baseDirectory: app/client/cypress
configFilePath: "**/mochawesome.json"
files:
- "**/*.png"
- "**/*.mp4"
- "**/*.html"