Skip to content

Commit

Permalink
fix: moves gcov2lcov download earlier to take advantage of caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpauwels committed Oct 5, 2023
1 parent c99f84f commit 55b5422
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ FROM 274295908850.dkr.ecr.eu-west-1.amazonaws.com/i/golang:1.21.1-alpine3.18
# Switch to generic build directory
WORKDIR /usr/src/service

# Install and run the gocov2lcov adapter module
RUN go install github.com/jandelgado/[email protected]

# Download and verify dependencies
COPY go.mod go.sum ./
RUN go mod download && go mod verify

# Copy in source files
COPY main.go main_test.go ./

# Install and run the gocov2lcov adapter module
RUN go install github.com/jandelgado/[email protected]

# By default, coverage is outputted in the same directory
ENV COVERAGE_DIRECTORY "."

Expand Down

0 comments on commit 55b5422

Please sign in to comment.