From a8060c6bee701ba138b22cc480b820e494b956f8 Mon Sep 17 00:00:00 2001 From: elraphty Date: Fri, 14 Jun 2024 15:33:22 +0100 Subject: [PATCH] added hosts --- .github/workflows/prjob_tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/prjob_tests.yml b/.github/workflows/prjob_tests.yml index fb09d2f9b..c2bef0345 100644 --- a/.github/workflows/prjob_tests.yml +++ b/.github/workflows/prjob_tests.yml @@ -9,12 +9,20 @@ jobs: runs-on: - ubuntu-latest steps: + - name: Enable docker.host.internal for Ubuntu + run: | + pwd && sudo bash -c 'echo "172.17.0.1 host.docker.internal" >> /etc/hosts' + - uses: actions/checkout@v2 + - name: Starting DB run: docker compose -f ./docker/testdb-docker-compose.yml -p test_db up -d + - name: Install cover run: go get golang.org/x/tools/cmd/cover + - name: Tests run: RELAY_AUTH_KEY=TEST go test ./... -race -v -coverprofile=coverage.out && ./cover-check.sh coverage.out 8.4 + - name: Droping with docker compose run: docker compose -f ./docker/testdb-docker-compose.yml -p test_db down