Change error logging level from error to warning in postToken method … #568
This file contains hidden or 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: go | |
on: | |
- push | |
- pull_request | |
jobs: | |
lint: | |
strategy: | |
matrix: | |
platform: [ubuntu-20.04] | |
go-version: [1.15.x, 1.16.x, 1.17.x] | |
runs-on: ${{ matrix.platform }} | |
name: Linters (Static Analysis) for Go | |
env: | |
GOBIN: /tmp/.bin | |
steps: | |
- name: Checkout code into the Go module directory. | |
uses: actions/checkout@v2 | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/cache@v1 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Linting & vetting. | |
run: ./make.bash lint | |
test: | |
strategy: | |
matrix: | |
platform: [ubuntu-20.04, macos-latest, windows-latest] | |
go-version: [1.15.x, 1.16.x, 1.17.x] | |
runs-on: ${{ matrix.platform }} | |
name: integration tests | |
env: | |
GOBIN: /tmp/.bin | |
steps: | |
- name: Install Go. | |
uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Check out code into the Go module directory. | |
uses: actions/checkout@v2 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Run tests | |
run: ./make.bash test-integration | |
- name: test | |
run: go test -v ./... | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v1 | |
with: | |
file: coverage.out |