forked from btcsuite/btcd
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
353 changed files
with
32,973 additions
and
12,635 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 |
---|---|---|
@@ -1,27 +1,74 @@ | ||
name: Build and Test | ||
on: [push, pull_request] | ||
|
||
env: | ||
# go needs absolute directories, using the $HOME variable doesn't work here. | ||
GOCACHE: /home/runner/work/go/pkg/build | ||
GOPATH: /home/runner/work/go | ||
GO_VERSION: 1.17.5 | ||
|
||
jobs: | ||
build: | ||
name: Go CI | ||
name: Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: [1.13, 1.14] | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Check out source | ||
uses: actions/checkout@v2 | ||
- name: Install Linters | ||
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0" | ||
|
||
- name: Build | ||
env: | ||
GO111MODULE: "on" | ||
run: go build ./... | ||
run: make build | ||
|
||
test-cover: | ||
name: Unit coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Check out source | ||
uses: actions/checkout@v2 | ||
|
||
- name: Test | ||
run: make unit-cover | ||
|
||
- name: Send top-level coverage | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
path-to-profile: coverage.txt | ||
|
||
- name: Send btcec | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
path-to-profile: btcec/coverage.txt | ||
|
||
- name: Send btcutil coverage | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
path-to-profile: btcutil/coverage.txt | ||
|
||
- name: Send btcutil coverage for psbt package | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
path-to-profile: btcutil/psbt/coverage.txt | ||
|
||
test-race: | ||
name: Unit race | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Check out source | ||
uses: actions/checkout@v2 | ||
|
||
- name: Test | ||
env: | ||
GO111MODULE: "on" | ||
run: | | ||
sh ./goclean.sh | ||
run: make unit-race |
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
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
Oops, something went wrong.