From 7c569cc85f52695ad982c2d237fae259d06b85c4 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sun, 29 May 2022 17:04:41 +0800 Subject: [PATCH] chore: various config updates to CI (#322) --- .github/workflows/go.yml | 2 +- .golangci.yml | 6 ++++++ README.md | 2 +- codecov.yml | 7 +++++++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ea1947f..e7c98bf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,7 +38,7 @@ jobs: name: Test strategy: matrix: - go-version: [ 1.15.x, 1.16.x, 1.17.x ] + go-version: [ 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x ] platform: [ ubuntu-latest, macos-latest, windows-latest ] runs-on: ${{ matrix.platform }} steps: diff --git a/.golangci.yml b/.golangci.yml index b7256ba..631e369 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,9 @@ linters-settings: + staticcheck: + checks: [ + "all", + "-SA1019" # There are valid use cases of strings.Title + ] nakedret: max-func-lines: 0 # Disallow any unnamed return statement @@ -19,3 +24,4 @@ linters: - rowserrcheck - unconvert - goimports + - unparam diff --git a/README.md b/README.md index 4b57eb0..30606d9 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Package ini provides INI file read and write functionality in Go. ## Installation -The minimum requirement of Go is **1.12**. +The minimum requirement of Go is **1.13**. ```sh $ go get gopkg.in/ini.v1 diff --git a/codecov.yml b/codecov.yml index 31f646e..e02ec84 100644 --- a/codecov.yml +++ b/codecov.yml @@ -4,6 +4,13 @@ coverage: project: default: threshold: 1% + informational: true + patch: + defualt: + only_pulls: true + informational: true comment: layout: 'diff' + +github_checks: false