mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
set up jest test coverage in gitlab ci
This commit is contained in:
parent
8bf4d196e6
commit
f6de92ecda
1 changed files with 15 additions and 12 deletions
|
|
@ -32,6 +32,21 @@ build lattice:
|
|||
- job: install lattice
|
||||
allow_failure: true
|
||||
|
||||
run jest tests:
|
||||
stage: test
|
||||
image: node:14
|
||||
variables:
|
||||
CI: "true"
|
||||
script:
|
||||
- echo "Testing lattice..."
|
||||
- cd lattice
|
||||
- npm test -- --coverage --testResultsProcessor=jest-sonar-reporter
|
||||
artifacts:
|
||||
paths:
|
||||
- lattice/coverage/lcov.info
|
||||
needs:
|
||||
- job: install lattice
|
||||
|
||||
run go tests:
|
||||
stage: test
|
||||
image: golang:1.16.9
|
||||
|
|
@ -64,18 +79,6 @@ generate coverage html:
|
|||
needs:
|
||||
- job: run go tests
|
||||
|
||||
run jest tests:
|
||||
stage: test
|
||||
image: sonarsource/sonar-scanner-cli:latest
|
||||
script:
|
||||
- cd lattice
|
||||
- npm install
|
||||
- npm test -- --coverage --testResultsProcessor=jest-sonar-reporter
|
||||
- sonar-scanner
|
||||
artifacts:
|
||||
paths:
|
||||
- lattice/coverage/lcov.info
|
||||
|
||||
upload to sonarcloud:
|
||||
stage: test
|
||||
image: sonarsource/sonar-scanner-cli:4.6
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue