lint to ci

This commit is contained in:
Boshi Lian 2022-04-04 06:29:10 +00:00
parent b01a7c8828
commit 248ec57578
2 changed files with 2 additions and 18 deletions

View file

@ -30,16 +30,10 @@ jobs:
with:
setAllVars: true
- name: fmt
run: |
if [ "$(gofmt -s -l libpiper sshpiperd | wc -l)" -gt 0 ]; then
exit 1;
fi
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
args: --timeout=5m
args: --timeout=5m -E gofmt
- name: Build
run: |