-
Notifications
You must be signed in to change notification settings - Fork 719
46 lines (46 loc) · 1.13 KB
/
linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: golangci-lint
on:
push:
branches:
- master
tags:
- '**'
pull_request:
jobs:
golangci:
name: golangci
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.54
args: --timeout=5m
protolint:
name: protolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: yoheimuta/action-protolint@v1
python:
name: python checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
version: "24.2.0"
custom:
name: custom checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Error groups checks
run: ./tools/linter_error_groups.sh
- name: goroutine checks
run: ./tools/linter_go_routines.sh