]>
Commit | Line | Data |
---|---|---|
69d55272 RBR |
1 | image: node:14 |
2 | ||
7ce5b3cb RBR |
3 | variables: |
4 | SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache | |
5 | ||
69d55272 RBR |
6 | stages: |
7 | - lint | |
8 | - test | |
7ce5b3cb | 9 | - quality |
69d55272 RBR |
10 | |
11 | before_script: | |
12 | - npm install | |
13 | ||
14 | lint: | |
15 | stage: lint | |
16 | script: | |
17 | - npm run lint | |
18 | ||
19 | test: | |
20 | stage: test | |
21 | script: | |
22 | - npm test | |
7ce5b3cb RBR |
23 | |
24 | quality: | |
25 | image: | |
26 | name: sonarsource/sonar-scanner-cli:latest | |
27 | entrypoint: [""] | |
28 | cache: | |
29 | key: "${CI_JOB_NAME}" | |
30 | paths: | |
31 | - .sonar/cache | |
32 | script: | |
33 | - npm run coverage | |
34 | - sonar-scanner | |
35 | only: | |
36 | - merge_requests | |
37 | - master | |
38 |