mirror of
https://github.com/btouchard/ackify.git
synced 2026-05-07 23:51:00 -05:00
fix: robust coverage calculation in test suite script
Fix bash arithmetic syntax error when calculating coverage percentages from LCOV files. The issue occurred when grep results contained whitespace or when values were empty strings.
This commit is contained in:
@@ -12,6 +12,9 @@ COPY webapp/package*.json ./
|
||||
RUN --mount=type=cache,target=/root/.npm \
|
||||
npm ci --no-audit --no-fund --no-progress
|
||||
COPY webapp/ ./
|
||||
# Enable code instrumentation for E2E coverage if requested
|
||||
ARG CYPRESS_COVERAGE=false
|
||||
ENV CYPRESS_COVERAGE=$CYPRESS_COVERAGE
|
||||
RUN npm run build
|
||||
|
||||
FROM golang:alpine AS builder
|
||||
|
||||
Reference in New Issue
Block a user