coverage reports

This commit is contained in:
Tim Möhlmann 2023-04-26 20:12:58 +03:00
parent e1655c3fbb
commit ec8f741e58
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,9 @@
name: Integration tests
on:
push:
tags-ignore:
- "*"
jobs:
integration-tests:
@ -35,4 +39,9 @@ jobs:
go run main.go init --config internal/integration/config/zitadel.yaml --config internal/integration/config/${INTEGRATION_DB_FLAVOR}.yaml
go run main.go setup --masterkey MasterkeyNeedsToHave32Characters --config internal/integration/config/zitadel.yaml --config internal/integration/config/${INTEGRATION_DB_FLAVOR}.yaml
- name: Run integration tests
run: go test -tags=integration -parallel 1 -v ./internal/integration ./internal/api/grpc/...
run: go test -tags=integration -parallel 1 -v -coverprofile=profile.cov -coverpkg=./pkg/... ./internal/integration ./internal/api/grpc/...
- name: Publish go coverage
uses: codecov/codecov-action@v3.1.0
with:
file: profile.cov
name: integration-tests

View File

@ -44,7 +44,7 @@ jobs:
uses: codecov/codecov-action@v3.1.0
with:
file: .artifacts/codecov/profile.cov
name: go-codecov
name: unit-tests
# As goreleaser doesn't build a dockerfile in snapshot mode, we have to build it here
- name: Build Docker Image
run: docker build -t zitadel:pr --file build/Dockerfile .artifacts/zitadel