Add cache for rates to prevent being rate limited #130
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: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Get dependencies | |
run: go get -v -t -d ./... | |
- name: Clean | |
run: make clean | |
- name: Fmt | |
run: make fmt | |
- name: Vet | |
run: make vet | |
- name: Setup Influx Db | |
run: make pit | |
- name: Setup Postgres Db | |
run: make pgcreatetestdb | |
- name: Setup client Tor proxy | |
run: make tor | |
- name: Run tests | |
run: TDEXA_INFLUXDB_TOKEN=${TDEXA_INFLUXDB_TOKEN} make testall |