-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathamplify.yml
48 lines (48 loc) · 992 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
37
38
39
40
41
42
43
44
45
46
47
48
version: 0.1
frontend:
phases:
preBuild:
commands:
- cd website
- npm install
- bash addSearch.sh
build:
commands:
- npm run build
customHeaders:
- pattern: '**/*.js'
headers:
- key: 'Cache-Control'
value: 'max-age=2629744'
- pattern: '**/*.css'
headers:
- key: 'Cache-Control'
value: 'max-age=2629744'
artifacts:
baseDirectory: /website/build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
test:
artifacts:
baseDirectory: /website/cypress
configFilePath: "/report/mochawesome.json"
files:
- "**/*.png"
- "**/*.mp4"
phases:
preTest:
commands:
- cd website
- npm install
- 'npm run test:mdlint'
- 'npm run test:brandlint'
- 'npm run cypress:prepare-prod'
test:
commands:
- 'npm run cypress:prod'
postTest:
commands:
- 'npm run cypress:prep-report'