feat(options): support custom binance api endpoint (#323) #756
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: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Tests and Lint | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18 | |
- run: go test -race -coverprofile="coverage.txt" -covermode=atomic ./... | |
- name: lint | |
if: github.event_name == 'pull_request' | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
skip-build-cache: true | |
skip-pkg-cache: true | |
- name: coverage | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: coverage.txt |