forked from aws-samples/baseline-environment-on-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
40 lines (36 loc) · 917 Bytes
/
.gitlab-ci.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
default:
before_script:
- npm i -g npm
- echo node $(node --version)
- echo npm $(npm --version)
- npm ci --cache .npm --prefer-offline
cache:
key:
files:
- package-lock.json
prefix: ${CI_PROJECT_NAME}
paths:
- .npm/
variables:
# Disable AWS profile in GitLab Runner to avoid unintended access during `cdk synth`.
# If you use your AWS account to deploy CDK apps, you should remove this, then set secret varibales in GitLab CI/CD settings from web.
AWS_PROFILE: ''
AWS_DEFAULT_REGION: ''
AWS_ACCESS_KEY_ID: ''
AWS_SECRET_ACCESS_KEY: ''
.node-build: &node-build
- npm run lint:ci
- npm run format:ci
- npm run build --workspaces
- npm run test --workspaces
- npm run synth:dev --workspaces
build-node14:
stage: build
image: node:14
script:
- *node-build
build-node16:
stage: build
image: node:16
script:
- *node-build