forked from google/go-github
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 864 Bytes
/
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
on: [push, pull_request]
name: linter
permissions:
contents: read
pull-requests: read
jobs:
lint:
strategy:
matrix:
platform: [ubuntu-latest]
# golangci-lint will only process a single module, so we need to call it
# separately for each module in the repo. We dont lint example/newreposecretwithlibsodium
# since that needs libsodium to run.
working-directory:
- ""
- example
- scrape
- tools
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 1.x
- name: golangci-lint ${{ matrix.working-directory }}
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
working-directory: ${{ matrix.working-directory}}
args: --verbose