Skip to content

Commit 5d69c29

Browse files
author
Sergey Vilgelm
committed
Prepare v1.2.3
1 parent cf72500 commit 5d69c29

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ The action runs [golangci-lint](https://github.com/golangci/golangci-lint) and r
77

88
![GitHub Annotations](./static/annotations.png)
99

10+
## Compatibility
11+
12+
* `v1.2.3` works with `golangci-lint` version >= `v1.28.3`
13+
* `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))
14+
* `v1.2.1` works with `golangci-lint` version >= `v1.14.0` ([issue](https://github.com/golangci/golangci-lint-action/issues/39))
15+
1016
## How to use
1117

1218
Add `.github/workflows/golangci-lint.yml` with the following contents:
@@ -30,8 +36,8 @@ jobs:
3036
uses: golangci/golangci-lint-action@v1
3137
with:
3238
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
33-
version: v1.26
34-
39+
version: v1.28
40+
3541
# Optional: working directory, useful for monorepos
3642
# working-directory: somedir
3743

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "golanci-lint-action",
3-
"version": "1.1.2",
3+
"version": "1.2.3",
44
"private": true,
55
"description": "golangci-lint github action",
66
"main": "dist/main.js",
@@ -22,7 +22,7 @@
2222
"type": "git",
2323
"url": "git+https://github.com/golangci/golangci-lint-action.git"
2424
},
25-
"author": "GitHub",
25+
"author": "golangci",
2626
"license": "MIT",
2727
"dependencies": {
2828
"@actions/core": "^1.2.0",

src/version.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export const stringifyVersion = (v: Version): string => `v${v.major}.${v.minor}$
2727

2828
const minVersion = {
2929
major: 1,
30-
minor: 14,
31-
patch: 0,
30+
minor: 28,
31+
patch: 3,
3232
}
3333

3434
const isLessVersion = (a: Version, b: Version): boolean => {
@@ -119,7 +119,7 @@ export async function findLintVersion(): Promise<VersionConfig> {
119119

120120
core.info(
121121
`Requested golangci-lint '${stringifyVersion(reqLintVersion)}', using '${versionConfig.TargetVersion}', calculation took ${Date.now() -
122-
startedAt}ms`
122+
startedAt}ms`
123123
)
124124
return versionConfig
125125
}

0 commit comments

Comments
 (0)