Merge pull request #96 from rumpl/chore-golangci-lint

Remove golangci-lint action, use executable
This commit is contained in:
Guillaume Tardif 2020-05-15 15:51:18 +02:00 committed by GitHub
commit d496b239dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 4 deletions

View File

@ -6,15 +6,23 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
GO111MODULE: "on"
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
- name: Run golangci-lint
env:
GO111MODULE: "on"
GOROOT: ""
uses: actions-contrib/golangci-lint@v1
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b . v1.27.0
./golangci-lint run
build:
name: Build
runs-on: ubuntu-latest