diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cf0d8446..ada9fa7a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,15 +43,10 @@ jobs: run: ./stack compose-init - name: Run stack - env: - DISABLE_TELEMETRY: true - run: ./stack compose-up -d + run: ./stack compose-up-ci -d - name: Run tests - env: - LOG_LEVEL: debug - DISABLE_TELEMETRY: true - run: ./stack integration-tests + run: ./stack integration-tests-ci - name: Display resource provider logs run: docker logs resource-provider diff --git a/stack b/stack index 2745449a..e688c437 100755 --- a/stack +++ b/stack @@ -35,12 +35,20 @@ function compose-up() { docker compose -f ./docker/docker-compose.dev.yml up "$@" } +function compose-up-ci() { + load-local-env + compose-env + export LOG_LEVEL=debug + export API_HOST= + export DISABLE_TELEMETRY=true + docker compose -f ./docker/docker-compose.dev.yml up "$@" +} + function compose-down() { compose-env docker compose -f ./docker/docker-compose.dev.yml down } - ############################################################################ # Load env variables from .local.dev ############################################################################ @@ -358,6 +366,15 @@ function integration-tests() { go test -v -count 1 . } +function integration-tests-ci() { + load-local-env + export LOG_LEVEL=debug + export API_HOST= + export DISABLE_TELEMETRY=true + cd test + go test -v -count 1 . +} + ############################################################################ # run #