build(deps): bump github.com/btcsuite/btcd from 0.22.0-beta to 0.24.0 #32
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
name: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- release/** | |
jobs: | |
cleanup-runs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: rokroskar/workflow-run-cleanup-action@master | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'" | |
install-tparse: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v2.1.4 | |
with: | |
go-version: 1.17 | |
- name: Display Go Version | |
run: go version | |
- name: Install tparse | |
run: | | |
export GO111MODULE="on" && go get github.com/mfridman/tparse@latest | |
- uses: actions/cache@v2.1.7 | |
with: | |
path: ~/go/bin | |
key: ${{ runner.os }}-go-tparse-binary | |
test-unit-cover: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v2.1.4 | |
with: | |
go-version: 1.17 | |
- uses: actions/checkout@v2.4.0 | |
- uses: technote-space/get-diff-action@v6.0.1 | |
with: | |
PATTERNS: | | |
**/**.sol | |
**/**.go | |
go.mod | |
go.sum | |
- name: Test and Create Coverage Report | |
run: | | |
make test-unit-cover | |
if: env.GIT_DIFF | |
- uses: codecov/codecov-action@v2.1.0 | |
with: | |
file: ./coverage.txt | |
fail_ci_if_error: true | |
if: env.GIT_DIFF |