Skip to content

Commit

Permalink
chore: support Go 1.19 (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored Aug 5, 2022
1 parent 7729fc9 commit c8101f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@ jobs:

strategy:
matrix:
go-version: [ 1.17, 1.18 ]
go-version: [ 1.18, 1.19 ]
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_VERSION: v1.46.2
GOLANGCI_LINT_VERSION: v1.48.0

steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Go modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run linter
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --go ${{ matrix.go-version }}
Expand All @@ -43,7 +43,7 @@ jobs:
run: go test -covermode=count -coverprofile=coverage.out ./...

- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1.0.6
uses: jandelgado/gcov2lcov-action@v1
- name: Coveralls
uses: coverallsapp/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Package logger implements a logging package.
Example usage:
log := logger.New(os.Stdout, logger.LogfmtFormat(), logger.Info)
// Logger can have scoped context
Expand Down
6 changes: 3 additions & 3 deletions format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestJsonFormat_Strings(t *testing.T) {
},
{
name: "tab",
in: "bar baz",
in: "bar baz",
want: `"bar\tbaz"`,
},
{
Expand Down Expand Up @@ -217,7 +217,7 @@ func TestLogfmtFormat_Strings(t *testing.T) {
},
{
name: "tab",
in: "bar baz",
in: "bar baz",
want: `"bar\tbaz"`,
},
{
Expand Down Expand Up @@ -378,7 +378,7 @@ func TestConsoleFormat_Strings(t *testing.T) {
},
{
name: "tab",
in: "bar baz",
in: "bar baz",
want: `bar\tbaz`,
},
{
Expand Down

0 comments on commit c8101f2

Please sign in to comment.