ydioy/bitbucket-pipelines.yml

29 lines
746 B
YAML

image: node:lts
clone:
depth: full # SonarQube Cloud scanner needs the full history to assign issues properly
definitions:
caches:
sonar: ~/.sonar # Caching SonarQube Cloud artifacts will speed up your build
services:
docker:
memory: 4096
steps:
- step: &test-sonarcloud
name: Test and analyze on SonarQube Cloud
size: 2x
caches:
- node
- sonar
script:
- npm ci
- npm run coverage
- pipe: sonarsource/sonarcloud-scan:4.0.0
pipelines: # More info here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
branches:
production:
- step: *test-sonarcloud