Skip to content

Commit

Permalink
feat: support go 1.24 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored Feb 12, 2025
1 parent bfc6963 commit a2c16af
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Goal of this PR

<!-- A brief description of the change being made with this pull request. -->

<!--
Fixes #
-->

## How did I test it?

<!-- A brief description the steps taken to test this pull request. -->
21 changes: 7 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,21 @@ jobs:

strategy:
matrix:
go-version: [ "1.22", "1.23" ]
go-version: [ "1.23", "1.24" ]
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_VERSION: v1.62.2
GOLANGCI_LINT_VERSION: v1.64.2

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Checkout code
uses: actions/checkout@v4

- name: Cache Go modules
uses: actions/cache@v4
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@v6
with:
Expand All @@ -44,8 +36,9 @@ jobs:

- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1

- name: Coveralls
uses: coverallsapp/github-action@v2.3.6
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ linters-settings:
linters:
enable-all: true
disable:
- exportloopref # deprecated
- depguard
- err113
- exhaustive
Expand Down
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Nicholas Wiersma
Copyright (c) 2025 Nicholas Wiersma

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hamba/logger/v2

go 1.22.7
go 1.23.0

require (
github.com/go-stack/stack v1.8.1
Expand Down

0 comments on commit a2c16af

Please sign in to comment.