2024-12-07 02:37:12 +07:00
|
|
|
name: lint
|
|
|
|
|
2024-12-06 19:05:27 +03:00
|
|
|
on:
|
|
|
|
pull_request:
|
2024-12-06 23:11:48 +03:00
|
|
|
types: [opened, reopened, synchronize]
|
2024-12-06 19:05:27 +03:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- v3
|
|
|
|
- v4
|
2024-12-07 02:37:12 +07:00
|
|
|
|
2024-12-06 19:05:27 +03:00
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-12-10 01:40:56 +03:00
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
filter: 'blob:none'
|
2024-12-06 19:05:27 +03:00
|
|
|
- name: setup-go
|
|
|
|
uses: actions/setup-go@v5
|
|
|
|
with:
|
2024-12-10 01:40:56 +03:00
|
|
|
go-version: 'stable'
|
2024-12-06 19:05:27 +03:00
|
|
|
- name: deps
|
|
|
|
run: go get -v -d ./...
|
|
|
|
- name: lint
|
|
|
|
uses: https://github.com/golangci/golangci-lint-action@v6
|
|
|
|
with:
|
2024-12-06 23:13:24 +03:00
|
|
|
version: 'latest'
|