Skip to content

Commit

Permalink
added hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed Jun 14, 2024
1 parent 66578f1 commit a8060c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/prjob_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a8060c6

Please sign in to comment.