-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathamplify.yml
More file actions
40 lines (40 loc) · 746 Bytes
/
amplify.yml
File metadata and controls
40 lines (40 loc) · 746 Bytes
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
version: 1
backend:
phases:
build:
commands:
- npm ci --cache .npm --prefer-offline
- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID
frontend:
phases:
build:
commands:
- npm run build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- .next/cache/**/*
- .npm/**/*
- node_modules/**/*
test:
phases:
test:
commands:
- 'npx cypress run || exit 1'
artifacts:
baseDirectory: cypress
files:
- '**/*.png'
- '**/*.mp4'
testArtifacts:
baseDirectory: cypress/reports
files:
- '**/*'
cache:
paths:
- .next/cache/**/*
- .npm/**/*
- .cache/Cypress