feat: use ChainNodeEndpoint in namespace fund if specified (#38) #178
Workflow file for this run
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: test | |
on: [push] | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
cache-dependency-path: go.sum | |
- name: test (race detector) | |
run: go test -timeout=30s -race -count=10 -failfast ./... | |
- name: generate coverage | |
run: go test ./... -coverprofile=./cover.out -covermode=atomic | |
- name: check test coverage | |
id: coverage | |
uses: vladopajic/go-test-coverage@v2 | |
with: | |
config: ./.github/testcoverage.yml | |
- name: make coverage badge | |
uses: action-badges/core@0.2.2 | |
if: contains(github.ref, 'main') | |
with: | |
label: coverage | |
message: ${{ steps.coverage.outputs.badge-text }} | |
message-color: ${{ steps.coverage.outputs.badge-color }} | |
file-name: coverage.svg | |
badge-branch: badges | |
github-token: "${{ secrets.GITHUB_TOKEN }}" |