diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 66a59c9ce..0342468de 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -48,7 +48,7 @@ jobs: - name: Test shell: bash - run: ./build_and_test.sh + run: ./build_and_test.sh -v coverage: runs-on: ubuntu-20.04 @@ -63,7 +63,7 @@ jobs: go-version: 1.16 - name: Create coverage file - run: go test -covermode=atomic -coverpkg=./... -coverprofile coverage.txt ./... + run: go test -v -covermode=atomic -coverpkg=./... -coverprofile coverage.txt ./... - name: Upload coverage file run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index 4f17ddf94..a503009d3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -16,6 +16,9 @@ RUN go get -u golang.org/x/lint/golint \ COPY go.mod . COPY go.sum . +# Cache kaspad dependencies +RUN go mod download + COPY . . RUN ./build_and_test.sh