-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbitbucket-pipelines.yml
40 lines (38 loc) · 1.04 KB
/
bitbucket-pipelines.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
image: node:20.11.1
definitions:
services:
docker:
memory: 6000
caches:
sonar: ~/.sonar/cache
steps:
- step: &lint-test-build
name: Lint, tests and build
caches:
- node
- sonar
- docker # used by sonar pipes
size: 2x # needed for additional memory requirements
clone:
depth: full # SonarCloud scanner needs the full history to assign issues properly
script:
- git submodule update --init --recursive
- cd org.knime.js.pagebuilder
- npm ci
- npm run ci:lint-format
- npm run coverage
- pipe: sonarsource/sonarcloud-scan:2.0.0
variables:
SONAR_SCANNER_OPTS: -Xmx4G
- pipe: sonarsource/sonarcloud-quality-gate:0.1.6
- npm run build
- npm run audit
artifacts:
- org.knime.js.pagebuilder/dist/**
pipelines:
pull-requests:
'**':
- step: *lint-test-build
branches:
'{master,releases/*}':
- step: *lint-test-build