Make the CI more verbose and cache kaspad dependencies in the dockerfile (#1541)

* Make the CI more verbose

* Improve the docker caching of kaspad dependencies

Co-authored-by: Svarog <feanorr@gmail.com>
This commit is contained in:
Elichai Turkel 2021-02-21 12:15:32 +02:00 committed by GitHub
parent 8fbea5d239
commit f66708b3c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -48,7 +48,7 @@ jobs:
- name: Test - name: Test
shell: bash shell: bash
run: ./build_and_test.sh run: ./build_and_test.sh -v
coverage: coverage:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -63,7 +63,7 @@ jobs:
go-version: 1.16 go-version: 1.16
- name: Create coverage file - 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 - name: Upload coverage file
run: bash <(curl -s https://codecov.io/bash) run: bash <(curl -s https://codecov.io/bash)

View File

@ -16,6 +16,9 @@ RUN go get -u golang.org/x/lint/golint \
COPY go.mod . COPY go.mod .
COPY go.sum . COPY go.sum .
# Cache kaspad dependencies
RUN go mod download
COPY . . COPY . .
RUN ./build_and_test.sh RUN ./build_and_test.sh