-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.09 KB
/
golangci-lint.yaml
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
name: Golangci lint
on:
push:
branches-ignore: [main]
pull_request:
branches: [main]
permissions:
# Required: allow read access to the content for analysis.
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Senzing SDK
uses: senzing-factory/github-action-install-senzing-sdk@v2
with:
senzingsdk-repository-package: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_PACKAGE }}
senzingsdk-repository-path: ${{ secrets.SENZING_APT_BETA_STAGING_REPOSITORY_URL }}
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Perform linting
uses: golangci/golangci-lint-action@v6
with:
args: --config=${{ github.workspace }}/.github/linters/.golangci.yaml
only-new-issues: false
version: latest