Skip to content

Commit

Permalink
ci: test: fix coverage merge failing
Browse files Browse the repository at this point in the history
  • Loading branch information
turtleDev committed Sep 5, 2024
1 parent fa3d4c5 commit 527b475
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ jobs:
- name: Start raccoon
run: make docker-run
- name: Run tests
run: go test ./... -v -cover -test.gocoverdir=$PWD/raccoon-coverage/
run: go test ./... -v -cover -test.gocoverdir=/tmp/raccoon-coverage/
env:
INTEGTEST_BOOTSTRAP_SERVER: 'localhost:9094'
INTEGTEST_HOST: 'localhost:8080'
INTEGTEST_TOPIC_FORMAT: 'clickstream-%s-log'
GRPC_SERVER_ADDR: 'localhost:8081'
PUBSUB_EMULATOR_HOST: 'localhost:8085'
LOCALSTACK_HOST: 'http://localhost:4566'
- name: Stop raccoon
run: docker compose down
- name: Merge coverage data
run: go tool covdata -i=raccoon-coverage -o coverage.out
run: go tool covdata -i=/tmp/raccoon-coverage -o coverage.out
- name: Upload coverage data
uses: shogo82148/actions-goveralls@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ services:
networks:
- cs-network
volumes:
- ./raccoon-coverage/:/app/raccoon-coverage
- /tmp/raccoon-coverage/:/app/raccoon-coverage
# telegraf:
# image: telegraf
# volumes:
Expand Down

0 comments on commit 527b475

Please sign in to comment.