30 lines
581 B
YAML
Raw Normal View History

2024-12-11 00:54:56 +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 04:08:53 +07:00
- name: checkout code
2024-12-11 00:54:56 +07:00
uses: actions/checkout@v4
with:
filter: 'blob:none'
2024-12-11 04:08:53 +07:00
- name: setup go
2024-12-11 00:54:56 +07:00
uses: actions/setup-go@v5
with:
2024-12-11 04:08:53 +07:00
cache-dependency-path: "**/*.sum"
2024-12-11 00:54:56 +07:00
go-version: 'stable'
2024-12-11 04:08:53 +07:00
- name: setup deps
run: go get -v ./...
- name: run lint
2024-12-11 00:54:56 +07:00
uses: https://github.com/golangci/golangci-lint-action@v6
with:
version: 'latest'