Codebase list golang-github-vbauerster-mpb / 61a2188
golangci-lint Vladimir Bauer 3 years ago
1 changed file(s) with 39 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 name: golangci-lint
1 on:
2 push:
3 tags:
4 - v*
5 branches:
6 - master
7 - main
8 pull_request:
9 permissions:
10 contents: read
11 # Optional: allow read access to pull request. Use with `only-new-issues` option.
12 pull-requests: read
13 jobs:
14 golangci:
15 strategy:
16 matrix:
17 go-version: [1.18]
18 os: [ubuntu-latest, macos-latest, windows-latest]
19 name: lint
20 runs-on: ${{ matrix.os }}
21 steps:
22 - uses: actions/setup-go@v3
23 with:
24 go-version: ${{ matrix.go-version }}
25 - uses: actions/checkout@v3
26 - name: golangci-lint
27 uses: golangci/golangci-lint-action@v3
28 with:
29 # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
30 version: latest
31 # Optional: working directory, useful for monorepos
32 # working-directory: somedir
33
34 # Optional: golangci-lint command line arguments.
35 # args: --issues-exit-code=0
36
37 # Optional: show only new issues if it's a pull request. The default value is `false`.
38 only-new-issues: true