Skip to content

Commit 7b5e4c3

Browse files
committed
Change default to ./docker-compose.yml for integration tests
1 parent 0c83457 commit 7b5e4c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

makefiles/test-integration.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GO ?= go
33
# Override in app Makefile to add custom ldflags, example BUILD_LDFLAGS="-s -w"
44
BUILD_LDFLAGS ?= ""
55
INTEGRATION_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
99
test-integration:

templates/github/workflows/test-integration.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
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"
1213
jobs:
1314
test:
1415
strategy:
@@ -49,7 +50,7 @@ jobs:
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: |

0 commit comments

Comments
 (0)