Skip to content

Commit

Permalink
feat: allow to skip golangci-lint installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jul 29, 2024
1 parent 9ec8973 commit dfc734c
Show file tree
Hide file tree
Showing 8 changed files with 752 additions and 18 deletions.
6 changes: 4 additions & 2 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 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 dfc734c

Please # to comment.