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 3
3
# Override in app Makefile to add custom ldflags, example BUILD_LDFLAGS="-s -w"
4
4
BUILD_LDFLAGS ?= ""
5
5
INTEGRATION_TEST_TARGET ?= -coverpkg ./internal/... integration_test.go
6
- INTEGRATION_DOCKER_COMPOSE ?= ./docker-compose.integration-test. yml
6
+ INTEGRATION_DOCKER_COMPOSE ?= ./docker-compose.yml
7
7
8
8
# # Run integration tests
9
9
test-integration :
Original file line number Diff line number Diff line change 9
9
env :
10
10
GO111MODULE : " on"
11
11
RUN_BASE_COVERAGE : " on" # Runs test for PR base in case base test coverage is missing.
12
+ DOCKER_COMPOSE_FILE : " ./docker-compose.yml"
12
13
jobs :
13
14
test :
14
15
strategy :
49
50
ref : ${{ github.event.pull_request.base.sha }}
50
51
path : __base
51
52
- 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"
53
54
- name : Run test for base code
54
55
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 != ''
55
56
run : |
You can’t perform that action at this time.
0 commit comments