Skip to content

Commit

Permalink
fix(ci): ubuntu was unpinned in configs (#41)
Browse files Browse the repository at this point in the history
* fix(ci): ubuntu was unpinned in configs

Signed-off-by: clok <Recovery@macbook-pro.lan>

* chore: update with new linters

Signed-off-by: clok <Recovery@macbook-pro.lan>

---------

Signed-off-by: clok <Recovery@macbook-pro.lan>
Co-authored-by: clok <Recovery@macbook-pro.lan>
  • Loading branch information
clok and clok committed Jan 9, 2024
1 parent 8c2591c commit 3f9a51c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Expand Up @@ -3,10 +3,10 @@ on: [ push, pull_request ]
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.38
version: v1.55.0
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -6,7 +6,7 @@ env:

jobs:
coverage:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Install Go
if: success()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/warm.yaml
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
name: Renew documentation
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Pull new module version
uses: clok/go-proxy-pull-action@master
13 changes: 13 additions & 0 deletions .golangci.yml
Expand Up @@ -19,3 +19,16 @@ linters:
- golint
- misspell
- unconvert

linters-settings:
depguard:
rules:
prevent_unmaintained_packages:
list-mode: lax # allow unless explicitely denied
files:
- $all
- "!$test"
allow:
- $gostd
- "github.com/gookit/color" # no longer maintained
- "github.com/kr/pretty" # no longer maintained
14 changes: 8 additions & 6 deletions kemba.go
Expand Up @@ -184,14 +184,16 @@ func (k *Kemba) Log(v ...interface{}) {
// New logger instance will have original `tag` value delimited with a `:` and appended with the new extended `tag` input.
//
// Example:
// k := New("test:original)
// k.Log("test")
// ke := k.Extend("plugin")
// ke.Log("test extended")
//
// k := New("test:original)
// k.Log("test")
// ke := k.Extend("plugin")
// ke.Log("test extended")
//
// Output:
// test:original test
// test:original:plugin test extended
//
// test:original test
// test:original:plugin test extended
func (k *Kemba) Extend(tag string) *Kemba {
exTag := fmt.Sprintf("%s:%s", k.tag, tag)
return New(exTag)
Expand Down

0 comments on commit 3f9a51c

Please sign in to comment.