2024-12-09 18:38:09 +07:00
|
|
|
name: lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, reopened, synchronize]
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- v3
|
|
|
|
- v4
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-12-11 22:22:07 +07:00
|
|
|
- name: checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
filter: 'blob:none'
|
|
|
|
- name: setup go
|
2024-12-09 18:38:09 +07:00
|
|
|
uses: actions/setup-go@v5
|
|
|
|
with:
|
2024-12-11 22:22:07 +07:00
|
|
|
cache-dependency-path: "**/*.sum"
|
|
|
|
go-version: 'stable'
|
|
|
|
- name: setup deps
|
|
|
|
run: go get -v ./...
|
|
|
|
- name: run lint
|
2024-12-09 18:38:09 +07:00
|
|
|
uses: https://github.com/golangci/golangci-lint-action@v6
|
|
|
|
with:
|
|
|
|
version: 'latest'
|