mirror of
https://github.com/google/go-attestation.git
synced 2024-12-18 20:47:57 +00:00
Run golangci-lint as part of CI
https://golangci-lint.run/usage/install/#ci-installation
This commit is contained in:
parent
438907edb0
commit
19d3c4de97
18
.github/workflows/golangci-lint.yml
vendored
Normal file
18
.github/workflows/golangci-lint.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: golangci-lint
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
jobs:
|
||||||
|
golangci:
|
||||||
|
name: lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.19.3
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: golangci-lint
|
||||||
|
uses: golangci/golangci-lint-action@v3
|
||||||
|
with:
|
||||||
|
version: v1.50.1
|
5
.golangci.yaml
Normal file
5
.golangci.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
linters:
|
||||||
|
enable:
|
||||||
|
- gofmt
|
||||||
|
disable:
|
||||||
|
- errcheck
|
Loading…
Reference in New Issue
Block a user