File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
templates/github/workflows Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 33# Override in app Makefile to add custom ldflags, example BUILD_LDFLAGS="-s -w"
44BUILD_LDFLAGS ?= ""
55INTEGRATION_TEST_TARGET ?= -coverpkg ./internal/... integration_test.go
6- INTEGRATION_DOCKER_COMPOSE ?= ./docker-compose.integration-test. yml
6+ INTEGRATION_DOCKER_COMPOSE ?= ./docker-compose.yml
77
88# # Run integration tests
99test-integration :
Original file line number Diff line number Diff line change 99env :
1010 GO111MODULE : " on"
1111 RUN_BASE_COVERAGE : " on" # Runs test for PR base in case base test coverage is missing.
12+ DOCKER_COMPOSE_FILE : " ./docker-compose.yml"
1213jobs :
1314 test :
1415 strategy :
4950 ref : ${{ github.event.pull_request.base.sha }}
5051 path : __base
5152 - name : Docker Compose
52- run : (test -f ./dev/docker-compose.integration-test.yml && docker-compose -f ./dev/docker-compose.integration-test.yml up -d && docker ps && docker-compose -f ./dev/docker-compose.integration-test.yml logs) || echo "::warning ::Missing ./dev/docker-compose.integration-test.yml file"
53+ run : (test -f ${{ env.DOCKER_COMPOSE_FILE }} && docker-compose -f ${{ env.DOCKER_COMPOSE_FILE }} up -d && docker ps && docker-compose -f ${{ env.DOCKER_COMPOSE_FILE }} logs) || echo "::warning ::Missing ${{ env.DOCKER_COMPOSE_FILE }} file"
5354 - name : Run test for base code
5455 if : matrix.go-version == '1.17.x' && env.RUN_BASE_COVERAGE == 'on' && steps.benchmark-base.outputs.cache-hit != 'true' && github.event.pull_request.base.sha != ''
5556 run : |
You can’t perform that action at this time.
0 commit comments