diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 7f7a3cd..d82066c 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -409,7 +409,7 @@ jobs: - label: prod gotags: test,!dev verbose: "" - coverflags: "" + coverflags: -coverprofile=coverage.out -covermode=atomic steps: - uses: actions/checkout@v4 @@ -454,19 +454,15 @@ jobs: POSTGRES_HOST: postgres TEST_DB_HOST: postgres - - name: Check coverage threshold + - name: Report coverage working-directory: backend run: | if [ -f coverage.out ]; then COVERAGE=$(go tool cover -func=coverage.out | grep total | awk '{print $3}' | sed 's/%//') echo "Total coverage: $COVERAGE%" - if [ "$(echo "$COVERAGE < 100" | bc)" -eq 1 ]; then - echo "FAIL: Coverage $COVERAGE% is below 100% threshold" - exit 1 - fi - echo "PASS: Coverage $COVERAGE% meets 100% threshold" + go tool cover -func=coverage.out | grep -E "total|handler" else - echo "No coverage file generated (prod build)" + echo "No coverage file generated" fi race: diff --git a/frontend/src/routes/today/+page.svelte b/frontend/src/routes/today/+page.svelte index 7e5175f..45e1764 100644 --- a/frontend/src/routes/today/+page.svelte +++ b/frontend/src/routes/today/+page.svelte @@ -146,10 +146,7 @@ - +