mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 03:54:21 +00:00
bb756482c7
* document analytics config
* rework configuration and docs
* describe HandleActiveInstances better
* describe active instances on quotas better
* only projected events are considered
* cleanup
* describe changes at runtime
* push milestones
* stop tracking events
* calculate and push 4 in 6 milestones
* reduce milestone pushed
* remove docs
* fix scheduled pseudo event projection
* push 5 in 6 milestones
* push 6 in 6 milestones
* ignore client ids
* fix text array contains
* push human readable milestone type
* statement unit tests
* improve dev and db performance
* organize imports
* cleanup
* organize imports
* test projection
* check rows.Err()
* test search query
* pass linting
* review
* test 4 milestones
* simplify milestone by instance ids query
* use type NamespacedCondition
* cleanup
* lint
* lint
* dont overwrite original error
* no opt-in in examples
* cleanup
* prerelease
* enable request headers
* make limit configurable
* review fixes
* only requeue special handlers secondly
* include integration tests
* Revert "include integration tests"
This reverts commit 96db9504ec
.
* pass reducers
* test handlers
* fix unit test
* feat: increment version
* lint
* remove prerelease
* fix integration tests
52 lines
1.9 KiB
YAML
52 lines
1.9 KiB
YAML
name: Integration tests
|
|
|
|
on:
|
|
push:
|
|
tags-ignore:
|
|
- '**'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
run:
|
|
strategy:
|
|
matrix:
|
|
db: [cockroach, postgres]
|
|
runs-on: ubuntu-20.04
|
|
env:
|
|
DOCKER_BUILDKIT: 1
|
|
INTEGRATION_DB_FLAVOR: ${{ matrix.db }}
|
|
ZITADEL_MASTERKEY: MasterkeyNeedsToHave32Characters
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.19
|
|
- name: Source checkout
|
|
uses: actions/checkout@v3
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
with:
|
|
driver: docker
|
|
install: true
|
|
- name: Generate gRPC definitions
|
|
run: docker build -f build/grpc/Dockerfile -t zitadel-base:local .
|
|
- name: Copy gRPC definitions
|
|
run: docker build -f build/zitadel/Dockerfile . -t zitadel-go-base --target go-copy -o .
|
|
- name: Download Go modules
|
|
run: go mod download
|
|
- name: Start ${{ matrix.db }} database
|
|
run: docker compose -f internal/integration/config/docker-compose.yaml up --wait ${INTEGRATION_DB_FLAVOR}
|
|
- name: Run zitadel init and setup
|
|
run: |
|
|
go run main.go init --config internal/integration/config/zitadel.yaml --config internal/integration/config/${INTEGRATION_DB_FLAVOR}.yaml
|
|
go run main.go setup --masterkeyFromEnv --config internal/integration/config/zitadel.yaml --config internal/integration/config/${INTEGRATION_DB_FLAVOR}.yaml
|
|
- name: Run integration tests
|
|
run: go test -tags=integration -race -p 1 -v -coverprofile=profile.cov -coverpkg=./internal/...,./cmd/... ./internal/integration ./internal/api/grpc/... ./internal/notification/handlers/...
|
|
- name: Publish go coverage
|
|
uses: codecov/codecov-action@v3.1.0
|
|
with:
|
|
file: profile.cov
|
|
name: integration-tests
|