Skip to content

Commit

Permalink
ci: update lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhan005 committed Nov 23, 2024
1 parent e726e0b commit 34f5d52
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,23 @@ jobs:
uses: actions/checkout@v2
- name: Create frontend dist folder
run: mkdir web/dist/ && touch web/dist/1
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.29
args: --timeout=30m
version: v1.54
args: --timeout=10m
- name: Check Go module tidiness
shell: bash
run: |
go mod tidy
STATUS=$(git status --porcelain)
if [ ! -z "$STATUS" ]; then
echo "Unstaged files:"
echo $STATUS
echo "Run 'go mod tidy' commit them"
exit 1
fi

0 comments on commit 34f5d52

Please sign in to comment.