2022-01-07 01:18:16 -05:00
|
|
|
name: lint-soft
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
2022-01-07 01:41:00 -05:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
|
|
|
pull-requests: read
|
|
|
|
|
2022-01-07 01:18:16 -05:00
|
|
|
jobs:
|
|
|
|
golangci:
|
|
|
|
name: lint-soft
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-02-25 02:02:50 -05:00
|
|
|
- name: Install Go
|
2023-12-07 06:59:23 -05:00
|
|
|
uses: actions/setup-go@v5
|
2022-02-25 02:02:50 -05:00
|
|
|
with:
|
|
|
|
go-version: ^1
|
|
|
|
|
2023-09-06 13:24:42 -04:00
|
|
|
- uses: actions/checkout@v4
|
2022-01-07 01:18:16 -05:00
|
|
|
- name: golangci-lint
|
2024-02-09 12:11:39 -05:00
|
|
|
uses: golangci/golangci-lint-action@v4
|
2022-01-07 01:18:16 -05:00
|
|
|
with:
|
|
|
|
# Optional: golangci-lint command line arguments.
|
|
|
|
args: --config .golangci-soft.yml --issues-exit-code=0
|
|
|
|
# Optional: show only new issues if it's a pull request. The default value is `false`.
|
|
|
|
only-new-issues: true
|