-
Notifications
You must be signed in to change notification settings - Fork 104
35 lines (34 loc) · 854 Bytes
/
lint.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
name: Lint
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
pre-commit:
# install and run locally via e.g.:
# brew install pre-commit shellcheck && pre-commit run -a
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.21'
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
golangci:
# install and run locally via e.g.:
# brew install golangci-lint && golangci-lint run
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.21'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
args: --timeout=3m