feat: utilise golangci-lint-action in workflow (#52)
This commit is contained in:
parent
17ee611c15
commit
05b52e2e89
9
.github/workflows/go.yml
vendored
9
.github/workflows/go.yml
vendored
@ -15,13 +15,10 @@ jobs:
|
|||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v1
|
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
|
- name: Lint
|
||||||
run: ./bin/golangci-lint run
|
uses: golangci/golangci-lint-action@v2
|
||||||
|
with:
|
||||||
|
version: v1.31
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user