ci: enable coverage on Tests (prod), remove unrealistic threshold, fix prettier
CI / Env docs check (push) Successful in 20s
CI / Nginx config check (push) Successful in 20s
CI / Frontend major deps (push) Failing after 26s
CI / Docker compose check (push) Successful in 30s
CI / Frontend deps check (push) Successful in 32s
CI / Secrets scan (push) Successful in 1m0s
CI / Go build (push) Successful in 1m1s
CI / Frontend build (push) Successful in 1m0s
CI / Knip (push) Successful in 58s
CI / Go vet (prod) (push) Successful in 1m38s
CI / Frontend a11y check (push) Successful in 2m12s
CI / Go vet (dev) (push) Successful in 2m2s
CI / go mod tidy (push) Successful in 35s
CI / Frontend QC (audit) (push) Successful in 39s
CI / Staticcheck (prod) (push) Successful in 2m59s
CI / Go vulnerabilities (push) Successful in 1m26s
CI / Staticcheck (dev) (push) Successful in 3m15s
CI / golangci-lint (push) Successful in 3m31s
CI / Frontend QC (typecheck) (push) Successful in 1m31s
CI / Frontend QC (lint) (push) Successful in 2m14s
CI / Security scan (prod) (push) Successful in 4m32s
CI / Security scan (dev) (push) Successful in 5m2s
CI / Svelte strict check (push) Successful in 28s
CI / Tests (prod) (push) Successful in 1m54s
CI / Tests (dev) (push) Failing after 2m20s
CI / Race (prod) (push) Successful in 3m41s
CI / Race (dev) (push) Successful in 5m15s
CI / Env docs check (push) Successful in 20s
CI / Nginx config check (push) Successful in 20s
CI / Frontend major deps (push) Failing after 26s
CI / Docker compose check (push) Successful in 30s
CI / Frontend deps check (push) Successful in 32s
CI / Secrets scan (push) Successful in 1m0s
CI / Go build (push) Successful in 1m1s
CI / Frontend build (push) Successful in 1m0s
CI / Knip (push) Successful in 58s
CI / Go vet (prod) (push) Successful in 1m38s
CI / Frontend a11y check (push) Successful in 2m12s
CI / Go vet (dev) (push) Successful in 2m2s
CI / go mod tidy (push) Successful in 35s
CI / Frontend QC (audit) (push) Successful in 39s
CI / Staticcheck (prod) (push) Successful in 2m59s
CI / Go vulnerabilities (push) Successful in 1m26s
CI / Staticcheck (dev) (push) Successful in 3m15s
CI / golangci-lint (push) Successful in 3m31s
CI / Frontend QC (typecheck) (push) Successful in 1m31s
CI / Frontend QC (lint) (push) Successful in 2m14s
CI / Security scan (prod) (push) Successful in 4m32s
CI / Security scan (dev) (push) Successful in 5m2s
CI / Svelte strict check (push) Successful in 28s
CI / Tests (prod) (push) Successful in 1m54s
CI / Tests (dev) (push) Failing after 2m20s
CI / Race (prod) (push) Successful in 3m41s
CI / Race (dev) (push) Successful in 5m15s
This commit is contained in:
@@ -409,7 +409,7 @@ jobs:
|
|||||||
- label: prod
|
- label: prod
|
||||||
gotags: test,!dev
|
gotags: test,!dev
|
||||||
verbose: ""
|
verbose: ""
|
||||||
coverflags: ""
|
coverflags: -coverprofile=coverage.out -covermode=atomic
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -454,19 +454,15 @@ jobs:
|
|||||||
POSTGRES_HOST: postgres
|
POSTGRES_HOST: postgres
|
||||||
TEST_DB_HOST: postgres
|
TEST_DB_HOST: postgres
|
||||||
|
|
||||||
- name: Check coverage threshold
|
- name: Report coverage
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
run: |
|
run: |
|
||||||
if [ -f coverage.out ]; then
|
if [ -f coverage.out ]; then
|
||||||
COVERAGE=$(go tool cover -func=coverage.out | grep total | awk '{print $3}' | sed 's/%//')
|
COVERAGE=$(go tool cover -func=coverage.out | grep total | awk '{print $3}' | sed 's/%//')
|
||||||
echo "Total coverage: $COVERAGE%"
|
echo "Total coverage: $COVERAGE%"
|
||||||
if [ "$(echo "$COVERAGE < 100" | bc)" -eq 1 ]; then
|
go tool cover -func=coverage.out | grep -E "total|handler"
|
||||||
echo "FAIL: Coverage $COVERAGE% is below 100% threshold"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
echo "PASS: Coverage $COVERAGE% meets 100% threshold"
|
|
||||||
else
|
else
|
||||||
echo "No coverage file generated (prod build)"
|
echo "No coverage file generated"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
race:
|
race:
|
||||||
|
|||||||
@@ -146,10 +146,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Current/Next Appointment Card (Full Width) -->
|
<!-- Current/Next Appointment Card (Full Width) -->
|
||||||
<CurrentAppointment
|
<CurrentAppointment {openEditBookingModal} {openUserModal} />
|
||||||
{openEditBookingModal}
|
|
||||||
{openUserModal}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- Quick Booking + Till Purchases Grid -->
|
<!-- Quick Booking + Till Purchases Grid -->
|
||||||
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2 lg:gap-6">
|
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2 lg:gap-6">
|
||||||
|
|||||||
Reference in New Issue
Block a user