Skip to content

Update log level range check for lint pass #570

Update log level range check for lint pass

Update log level range check for lint pass #570

Workflow file for this run

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