docs: improve examples
This commit is contained in:
parent
4145754745
commit
e1ff6fb1c1
24
README.md
24
README.md
@ -20,16 +20,6 @@ The action runs [golangci-lint](https://github.com/golangci/golangci-lint) and r
|
|||||||
|
|
||||||
If you value it, consider supporting us, we appreciate it! :heart:
|
If you value it, consider supporting us, we appreciate it! :heart:
|
||||||
|
|
||||||
## Compatibility
|
|
||||||
|
|
||||||
* `v6.0.0+` removes `annotations` option, removes the default output format (`github-actions`).
|
|
||||||
* `v5.0.0+` removes `skip-pkg-cache` and `skip-build-cache` because the cache related to Go itself is already handled by `actions/setup-go`.
|
|
||||||
* `v4.0.0+` requires an explicit `actions/setup-go` installation step before using this action: `uses: actions/setup-go@v5`.
|
|
||||||
The `skip-go-installation` option has been removed.
|
|
||||||
* `v2.0.0+` works with `golangci-lint` version >= `v1.28.3`
|
|
||||||
* `v1.2.2` is deprecated due to we forgot to change the minimum version of `golangci-lint` to `v1.28.3` ([issue](https://github.com/golangci/golangci-lint-action/issues/39))
|
|
||||||
* `v1.2.1` works with `golangci-lint` version >= `v1.14.0` ([issue](https://github.com/golangci/golangci-lint-action/issues/39))
|
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
We recommend running this action in a job separate from other jobs (`go test`, etc.)
|
We recommend running this action in a job separate from other jobs (`go test`, etc.)
|
||||||
@ -74,10 +64,6 @@ jobs:
|
|||||||
<details>
|
<details>
|
||||||
<summary>Multiple OS Example</summary>
|
<summary>Multiple OS Example</summary>
|
||||||
|
|
||||||
If you need to run linters for specific operating systems, you will need to use the action `>=v2`.
|
|
||||||
|
|
||||||
Here is a sample configuration file:
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: golangci-lint
|
name: golangci-lint
|
||||||
on:
|
on:
|
||||||
@ -119,6 +105,16 @@ You will also likely need to add the following `.gitattributes` file to ensure t
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
## Compatibility
|
||||||
|
|
||||||
|
* `v6.0.0+` removes `annotations` option, removes the default output format (`github-actions`).
|
||||||
|
* `v5.0.0+` removes `skip-pkg-cache` and `skip-build-cache` because the cache related to Go itself is already handled by `actions/setup-go`.
|
||||||
|
* `v4.0.0+` requires an explicit `actions/setup-go` installation step before using this action: `uses: actions/setup-go@v5`.
|
||||||
|
The `skip-go-installation` option has been removed.
|
||||||
|
* `v2.0.0+` works with `golangci-lint` version >= `v1.28.3`
|
||||||
|
* `v1.2.2` is deprecated due to we forgot to change the minimum version of `golangci-lint` to `v1.28.3` ([issue](https://github.com/golangci/golangci-lint-action/issues/39))
|
||||||
|
* `v1.2.1` works with `golangci-lint` version >= `v1.14.0` ([issue](https://github.com/golangci/golangci-lint-action/issues/39))
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
### `version`
|
### `version`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user