mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-06 14:16:43 +00:00
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:
parent
8fbea5d239
commit
f66708b3c6
4
.github/workflows/go.yml
vendored
4
.github/workflows/go.yml
vendored
@ -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)
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user