mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-04-16 16:55:47 +00:00
docs: update examples (#1360)
Some checks failed
build-and-test / test-plugins (ubuntu-22.04-arm, v2.10) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, ) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, ) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, latest) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, v2.10) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, v2.10.1) (push) Has been cancelled
build-and-test / test-monorepo (macos-latest) (push) Has been cancelled
build-and-test / test-monorepo (ubuntu-22.04-arm) (push) Has been cancelled
build-and-test / test-monorepo (ubuntu-latest) (push) Has been cancelled
Code Scanning - Action / codeQL (push) Has been cancelled
build-and-test / test (macos-latest, ) (push) Has been cancelled
build-and-test / test (macos-latest, latest) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, latest) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-latest, fixtures/go-tool) (push) Has been cancelled
build-and-test / build (push) Has been cancelled
build-and-test / test (windows-latest, ) (push) Has been cancelled
build-and-test / test (windows-latest, v2.10.1) (push) Has been cancelled
build-and-test / test (macos-latest, v2.10) (push) Has been cancelled
build-and-test / test (macos-latest, v2.10.1) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, ) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, latest) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, v2.10) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, v2.10) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, v2.10.1) (push) Has been cancelled
build-and-test / test (ubuntu-latest, ) (push) Has been cancelled
build-and-test / test (windows-latest, v2.10) (push) Has been cancelled
build-and-test / test (ubuntu-latest, latest) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, v2.10.1) (push) Has been cancelled
build-and-test / test (ubuntu-latest, v2.10) (push) Has been cancelled
build-and-test / test (ubuntu-latest, v2.10.1) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-22.04-arm, latest) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, v2.10.1) (push) Has been cancelled
build-and-test / test (windows-latest, latest) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-latest, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, ) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, f8861ca84d805a673945d037bae1559c3567aadc) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, latest) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, v2.10.1) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, f8861ca84d805a673945d037bae1559c3567aadc) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, ) (push) Has been cancelled
build-and-test / test-monorepo (windows-latest) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, ) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, latest) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, v2.10.1) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, f8861ca84d805a673945d037bae1559c3567aadc) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, ) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, f8861ca84d805a673945d037bae1559c3567aadc) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, latest) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-22.04-arm, v2.10.1) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, v2.10.1) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, ) (push) Has been cancelled
build-and-test / test-go-mod (windows-latest, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-go-mod (windows-latest, fixtures/go-tool) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, latest) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, latest) (push) Has been cancelled
build-and-test / test-go-mod (macos-latest, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-go-mod (macos-latest, fixtures/go-tool) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-22.04-arm, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-22.04-arm, fixtures/go-tool) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, v2.10) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, v2.10.1) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-22.04-arm, ) (push) Has been cancelled
Some checks failed
build-and-test / test-plugins (ubuntu-22.04-arm, v2.10) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, ) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, ) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, latest) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, v2.10) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, v2.10.1) (push) Has been cancelled
build-and-test / test-monorepo (macos-latest) (push) Has been cancelled
build-and-test / test-monorepo (ubuntu-22.04-arm) (push) Has been cancelled
build-and-test / test-monorepo (ubuntu-latest) (push) Has been cancelled
Code Scanning - Action / codeQL (push) Has been cancelled
build-and-test / test (macos-latest, ) (push) Has been cancelled
build-and-test / test (macos-latest, latest) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, latest) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-latest, fixtures/go-tool) (push) Has been cancelled
build-and-test / build (push) Has been cancelled
build-and-test / test (windows-latest, ) (push) Has been cancelled
build-and-test / test (windows-latest, v2.10.1) (push) Has been cancelled
build-and-test / test (macos-latest, v2.10) (push) Has been cancelled
build-and-test / test (macos-latest, v2.10.1) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, ) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, latest) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, v2.10) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, v2.10) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, v2.10.1) (push) Has been cancelled
build-and-test / test (ubuntu-latest, ) (push) Has been cancelled
build-and-test / test (windows-latest, v2.10) (push) Has been cancelled
build-and-test / test (ubuntu-latest, latest) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, v2.10.1) (push) Has been cancelled
build-and-test / test (ubuntu-latest, v2.10) (push) Has been cancelled
build-and-test / test (ubuntu-latest, v2.10.1) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-22.04-arm, latest) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, v2.10.1) (push) Has been cancelled
build-and-test / test (windows-latest, latest) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-latest, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, ) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, f8861ca84d805a673945d037bae1559c3567aadc) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, latest) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, v2.10.1) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, f8861ca84d805a673945d037bae1559c3567aadc) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, ) (push) Has been cancelled
build-and-test / test-monorepo (windows-latest) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, ) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, latest) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, v2.10.1) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, f8861ca84d805a673945d037bae1559c3567aadc) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, ) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, f8861ca84d805a673945d037bae1559c3567aadc) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, latest) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-22.04-arm, v2.10.1) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, v2.10.1) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, ) (push) Has been cancelled
build-and-test / test-go-mod (windows-latest, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-go-mod (windows-latest, fixtures/go-tool) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, latest) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, latest) (push) Has been cancelled
build-and-test / test-go-mod (macos-latest, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-go-mod (macos-latest, fixtures/go-tool) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-22.04-arm, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-22.04-arm, fixtures/go-tool) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, v2.10) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, v2.10.1) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-22.04-arm, ) (push) Has been cancelled
This commit is contained in:
parent
b269f19624
commit
e94e72cadf
1 changed files with 12 additions and 12 deletions
24
README.md
24
README.md
|
|
@ -49,14 +49,14 @@ jobs:
|
|||
name: lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: stable
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v9
|
||||
with:
|
||||
version: v2.10
|
||||
version: v2.11
|
||||
```
|
||||
|
||||
</details>
|
||||
|
|
@ -87,14 +87,14 @@ jobs:
|
|||
name: lint
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v9
|
||||
with:
|
||||
version: v2.10
|
||||
version: v2.11
|
||||
```
|
||||
|
||||
You will also likely need to add the following `.gitattributes` file to ensure that line endings for Windows builds are properly formatted:
|
||||
|
|
@ -120,7 +120,7 @@ on:
|
|||
|
||||
env:
|
||||
GO_VERSION: stable
|
||||
GOLANGCI_LINT_VERSION: v2.10
|
||||
GOLANGCI_LINT_VERSION: v2.11
|
||||
|
||||
jobs:
|
||||
detect-modules:
|
||||
|
|
@ -128,7 +128,7 @@ jobs:
|
|||
outputs:
|
||||
modules: ${{ steps.set-modules.outputs.modules }}
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
|
@ -142,7 +142,7 @@ jobs:
|
|||
matrix:
|
||||
modules: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
|
@ -179,7 +179,7 @@ jobs:
|
|||
with:
|
||||
os: ${{ matrix.os }}
|
||||
go-version: ${{ matrix.go-version }}
|
||||
golangci-lint-version: v2.10
|
||||
golangci-lint-version: v2.11
|
||||
```
|
||||
|
||||
```yaml
|
||||
|
|
@ -201,7 +201,7 @@ on:
|
|||
golangci-lint-version:
|
||||
description: 'Golangci-lint version'
|
||||
type: string
|
||||
default: 'v2.10'
|
||||
default: 'v2.11'
|
||||
|
||||
jobs:
|
||||
detect-modules:
|
||||
|
|
@ -209,7 +209,7 @@ jobs:
|
|||
outputs:
|
||||
modules: ${{ steps.set-modules.outputs.modules }}
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ${{ inputs.go-version }}
|
||||
|
|
@ -224,7 +224,7 @@ jobs:
|
|||
matrix:
|
||||
modules: ${{ fromJSON(needs.detect-modules.outputs.modules) }}
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: ${{ inputs.go-version }}
|
||||
|
|
@ -296,7 +296,7 @@ When `install-mode` is:
|
|||
```yml
|
||||
uses: golangci/golangci-lint-action@v9
|
||||
with:
|
||||
version: v2.10
|
||||
version: v2.11
|
||||
# ...
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue