Skip to content

Commit

Permalink
build(ci): fix conn refused in make coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Oct 10, 2023
1 parent 73060d1 commit b04d1f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- run: |
sudo python3 -m http.server 80 &> /dev/null &
echo "pid=$!" >> "$GITHUB_OUTPUT"
id: server
- run: make cover
- run: kill -9 ${{ steps.server.outputs.pid }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit b04d1f9

Please sign in to comment.