feat: utilise golangci-lint-action in workflow (#52)

This commit is contained in:
Sudipto Ghosh 2020-10-14 20:06:42 +05:30 committed by GitHub
parent 17ee611c15
commit 05b52e2e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,13 +15,10 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Install GolangCI-Lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s $version
env:
version: v1.31.0
- name: Lint
run: ./bin/golangci-lint run
uses: golangci/golangci-lint-action@v2
with:
version: v1.31
- name: Test
run: |