forked from aws/aws-toolkit-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlint.yml
40 lines (34 loc) · 1.15 KB
/
lint.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
version: 0.2
# Run unprivileged for most phases (except those marked "run-as: root").
run-as: codebuild-user
env:
variables:
# Implicitly passed by the AWS automation pipeline:
# VSCODE_TEST_VERSION
# GITHUB_READONLY_TOKEN
AWS_TOOLKIT_TEST_NO_COLOR: '1'
phases:
install:
run-as: root
runtime-versions:
nodejs: 16
commands:
- bash buildspec/shared/linux-install.sh
pre_build:
commands:
- export HOME=/home/codebuild-user
- bash buildspec/shared/linux-pre_build.sh
build:
commands:
- export HOME=/home/codebuild-user
- npm run compile -w packages/core
- npm run testCompile -w packages/ --if-present
- npm run lint
- VCS_COMMIT_ID="${CODEBUILD_RESOLVED_SOURCE_VERSION}"
- CI_BUILD_URL=$(echo $CODEBUILD_BUILD_URL | sed 's/#/%23/g') # Encode `#` in the URL because otherwise the url is clipped in the Codecov.io site
- CI_BUILD_ID="${CODEBUILD_BUILD_ID}"
reports:
unit-test:
files:
- '*'
base-directory: '.test-reports'