From 5d69c297d73e373abe8cfa682f7a903cf7b73d0a Mon Sep 17 00:00:00 2001 From: Sergey Vilgelm Date: Tue, 14 Jul 2020 08:14:24 -0500 Subject: [PATCH] Prepare v1.2.3 --- README.md | 10 ++++++++-- package.json | 4 ++-- src/version.ts | 6 +++--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9f346f4d3e..2220a23a66 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,12 @@ The action runs [golangci-lint](https://github.com/golangci/golangci-lint) and r ![GitHub Annotations](./static/annotations.png) +## Compatibility + +* `v1.2.3` 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 Add `.github/workflows/golangci-lint.yml` with the following contents: @@ -30,8 +36,8 @@ jobs: uses: golangci/golangci-lint-action@v1 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.26 - + version: v1.28 + # Optional: working directory, useful for monorepos # working-directory: somedir diff --git a/package.json b/package.json index adeff4eb52..21f4eb0b31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "golanci-lint-action", - "version": "1.1.2", + "version": "1.2.3", "private": true, "description": "golangci-lint github action", "main": "dist/main.js", @@ -22,7 +22,7 @@ "type": "git", "url": "git+https://github.com/golangci/golangci-lint-action.git" }, - "author": "GitHub", + "author": "golangci", "license": "MIT", "dependencies": { "@actions/core": "^1.2.0", diff --git a/src/version.ts b/src/version.ts index aa8f0f5bc4..8cb0d344da 100644 --- a/src/version.ts +++ b/src/version.ts @@ -27,8 +27,8 @@ export const stringifyVersion = (v: Version): string => `v${v.major}.${v.minor}$ const minVersion = { major: 1, - minor: 14, - patch: 0, + minor: 28, + patch: 3, } const isLessVersion = (a: Version, b: Version): boolean => { @@ -119,7 +119,7 @@ export async function findLintVersion(): Promise { core.info( `Requested golangci-lint '${stringifyVersion(reqLintVersion)}', using '${versionConfig.TargetVersion}', calculation took ${Date.now() - - startedAt}ms` + startedAt}ms` ) return versionConfig }