micro-server-grpc/.gitea/workflows/job_lint.yml

30 lines
581 B
YAML
Raw Normal View History

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