generated from pauwels-labs/template-golang-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: moves gcov2lcov download earlier to take advantage of caching
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "." | ||
|
||
|