Dockerfile: test-coverage target

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-01-23 01:38:28 +01:00
parent 3d197dfdf1
commit 68e4223857
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
3 changed files with 9 additions and 2 deletions

View File

@ -22,7 +22,7 @@ jobs:
name: Test
uses: docker/bake-action@v2
with:
targets: test
targets: test-coverage
# -
# name: Upload coverage
# uses: codecov/codecov-action@v3

View File

@ -41,6 +41,12 @@ target "vendor-validate" {
}
target "test" {
dockerfile = "dev.Dockerfile"
target = "test"
output = ["type=cacheonly"]
}
target "test-coverage" {
dockerfile = "dev.Dockerfile"
target = "test-coverage"
output = ["./coverage"]

View File

@ -5,7 +5,8 @@
"build": "tsc",
"lint": "eslint src/**/*.ts __tests__/**/*.ts",
"format": "eslint --fix src/**/*.ts __tests__/**/*.ts",
"test": "jest --coverage"
"test": "jest",
"test-coverage": "jest --coverage"
},
"repository": {
"type": "git",