52
52
command : yarn install --ignore-optional --no-progress --frozen-lockfile
53
53
- run :
54
54
name : Run linting and tests
55
- command : yarn less:lint && yarn test
55
+ command : yarn less:lint
56
56
- run :
57
57
name : Build
58
58
command : yarn build
77
77
- ./dist
78
78
- ./k8s
79
79
80
- coverage :
80
+ test-and- coverage :
81
81
docker :
82
82
- image : circleci/node:latest
83
83
working_directory : ~/repo
93
93
name : Run yarn install
94
94
command : yarn install --ignore-optional --no-progress --frozen-lockfile
95
95
- run :
96
- name : Run Test Coverage
96
+ name : Run Test and coverage
97
97
command : yarn test:coverage
98
98
- save_cache :
99
99
name : Save Yarn Package Cache
@@ -120,12 +120,12 @@ jobs:
120
120
cp -r /tmp/workspace/coverage ~/repo/coverage
121
121
cp -r /tmp/workspace/.nyc_output ~/repo/.nyc_output
122
122
- run :
123
- name : Install Sonar
123
+ name : Install Sonar Scanner
124
124
command : yarn global add sonarqube-scanner
125
125
- run :
126
- name : Run Test Coverage
126
+ name : Run Sonar Scanner
127
127
halt_build_on_fail : false
128
- command : $(yarn global bin)/sonar-scanner -Dsonar.login=$SONAR_TOKEN
128
+ command : $(yarn global bin)/sonar-scanner -Dsonar.login=$SONAR_TOKEN -Dproject.settings=./.sonarcloud.properties
129
129
130
130
build-docker :
131
131
executor : docker-publisher
@@ -230,7 +230,7 @@ workflows:
230
230
context : familie-ci
231
231
requires :
232
232
- verify
233
- - coverage :
233
+ - test-and- coverage :
234
234
requires :
235
235
- verify
236
236
- build-docker :
@@ -239,24 +239,23 @@ workflows:
239
239
- build
240
240
- publish-sonar :
241
241
requires :
242
- - coverage
243
- - build-docker
242
+ - test-and-coverage
244
243
filters :
245
244
branches :
246
245
only : master
247
246
- publish-dockerhub :
248
247
context : NAIS deployment
249
248
requires :
250
249
- build-docker
251
- - coverage
250
+ - test-and- coverage
252
251
filters :
253
252
branches :
254
253
only : master
255
254
- publish-github :
256
255
context : familie-ci
257
256
requires :
258
257
- build-docker
259
- - coverage
258
+ - test-and- coverage
260
259
filters :
261
260
branches :
262
261
only : master
0 commit comments