Skip to content

Increase lint timeout time #4

Increase lint timeout time

Increase lint timeout time #4

Workflow file for this run

name: Regular Test
on: push
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Build
run: go build ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Install golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin
- name: Lint
run: golangci-lint run --timeout=10m ./...
unit_test:
name: Unit Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Unit Test
run: |
go test -coverprofile=cover.out ./...
go tool cover -func=cover.out > coverage.out
tail coverage.out