mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 16:47:41 +00:00
coverage reports
This commit is contained in:
parent
e1655c3fbb
commit
ec8f741e58
11
.github/workflows/integration.yml
vendored
11
.github/workflows/integration.yml
vendored
@ -1,5 +1,9 @@
|
|||||||
|
name: Integration tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
tags-ignore:
|
||||||
|
- "*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
integration-tests:
|
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 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
|
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
|
- 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
|
||||||
|
2
.github/workflows/test-code.yml
vendored
2
.github/workflows/test-code.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
|||||||
uses: codecov/codecov-action@v3.1.0
|
uses: codecov/codecov-action@v3.1.0
|
||||||
with:
|
with:
|
||||||
file: .artifacts/codecov/profile.cov
|
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
|
# As goreleaser doesn't build a dockerfile in snapshot mode, we have to build it here
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: docker build -t zitadel:pr --file build/Dockerfile .artifacts/zitadel
|
run: docker build -t zitadel:pr --file build/Dockerfile .artifacts/zitadel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user