Skip to content

Commit

Permalink
ci: fix coverage metering by removing files not under test
Browse files Browse the repository at this point in the history
  • Loading branch information
hf committed Dec 24, 2024
1 parent f572ced commit 37517b0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,19 @@ jobs:
run: make migrate_dev
- name: Lint and test
run: make test
- name: Cleanup coverage
run: |
set -x
# since Go 1.20 these source files need to be deleted from the
# coverage profile as they contain legacy or untestable code (like
# `main` package)
sed -i '/^github.com\/supabase\/auth\/client/d' coverage.out
sed -i '/^github.com\/supabase\/auth\/cmd/d' coverage.out
sed -i '/^github.com\/supabase\/auth\/docs/d' coverage.out
sed -i '/^github.com\/supabase\/auth\/main/d' coverage.out
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out

0 comments on commit 37517b0

Please sign in to comment.