Skip to content

Commit

Permalink
feat: allow to skip golangci-lint installation (#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Jul 29, 2024
1 parent 9ec8973 commit aaa42aa
Show file tree
Hide file tree
Showing 8 changed files with 753 additions and 19 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,10 @@ You will also likely need to add the following `.gitattributes` file to ensure t

The version of golangci-lint to use.

* When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
* When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
When `install-mode` is:
* `binary` (default): the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
* `goinstall`: the value can be v1.2.3, `latest`, or the hash of a commit.
* `none`: the value is ignored.

<details>
<summary>Example</summary>
Expand All @@ -280,7 +282,7 @@ with:

(optional)

The mode to install golangci-lint: it can be `binary` or `goinstall`.
The mode to install golangci-lint: it can be `binary`, `goinstall`, or `none`.

The default value is `binary`.

Expand Down
8 changes: 5 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ inputs:
version:
description: |
The version of golangci-lint to use.
When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
When `install-mode` is:
- `binary` (default): the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
- `goinstall`: the value can be v1.2.3, `latest`, or the hash of a commit.
- `none`: the value is ignored.
required: false
install-mode:
description: "The mode to install golangci-lint. It can be 'binary' or 'goinstall'."
description: "The mode to install golangci-lint. It can be 'binary', 'goinstall', or 'none'."
default: "binary"
required: false
working-directory:
Expand Down
Loading

0 comments on commit aaa42aa

Please sign in to comment.