Skip to content

Commit c8b33d8

Browse files
authored
feat: bump go 1.24 (#55)
1 parent f6654f2 commit c8b33d8

File tree

6 files changed

+25
-31
lines changed

6 files changed

+25
-31
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Goal of this PR
2+
3+
<!-- A brief description of the change being made with this pull request. -->
4+
5+
<!--
6+
Fixes #
7+
-->
8+
9+
## How did I test it?
10+
11+
<!-- A brief description the steps taken to test this pull request. -->

.github/workflows/test.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,21 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
go-version: [ "1.21", "1.22" ]
13+
go-version: [ "1.23", "1.24" ]
1414
runs-on: ubuntu-latest
1515
env:
16-
GOLANGCI_LINT_VERSION: v1.56.1
16+
GOLANGCI_LINT_VERSION: v1.64.2
1717

1818
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
1922
- name: Install Go
2023
if: success()
2124
uses: actions/setup-go@v5
2225
with:
2326
go-version: ${{ matrix.go-version }}
2427

25-
- name: Checkout code
26-
uses: actions/checkout@v4
27-
28-
- name: Cache Go modules
29-
uses: actions/cache@v4
30-
with:
31-
path: ~/go/pkg/mod
32-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
33-
restore-keys: |
34-
${{ runner.os }}-go-
35-
3628
- name: Run linter
3729
uses: golangci/golangci-lint-action@v6
3830
with:
@@ -44,8 +36,9 @@ jobs:
4436

4537
- name: Convert coverage.out to coverage.lcov
4638
uses: jandelgado/gcov2lcov-action@v1
39+
4740
- name: Coveralls
48-
uses: coverallsapp/github-action@v2.3.6
41+
uses: coverallsapp/github-action@v2
4942
with:
5043
github-token: ${{ secrets.GITHUB_TOKEN }}
5144
path-to-lcov: coverage.lcov

.golangci.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,15 @@ linters-settings:
1717
linters:
1818
enable-all: true
1919
disable:
20-
- interfacer # deprecated
21-
- scopelint # deprecated
22-
- maligned # deprecated
23-
- golint # deprecated
24-
- exhaustivestruct # deprecated
25-
- deadcode # deprecated
26-
- varcheck # deprecated
27-
- ifshort # deprecated
28-
- nosnakecase # deprecated
29-
- structcheck # deprecated
20+
- tenv # deprecated
3021
- depguard
22+
- err113
3123
- exhaustive
3224
- exhaustruct
3325
- gci
3426
- gochecknoglobals
35-
- goerr113
36-
- gomnd
27+
- mnd
3728
- nlreturn
38-
- maligned
3929
- varnamelen
4030
- wrapcheck
4131
- wsl

LICENCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Nicholas Wiersma
3+
Copyright (c) 2025 Nicholas Wiersma
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/hamba/testutils
22

3-
go 1.21
3+
go 1.23.0
44

55
require (
66
github.com/ryanuber/go-glob v1.0.0

http/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ func elementsMatch(a, b []string) bool {
235235
bLen := len(b)
236236

237237
visited := make([]bool, bLen)
238-
for i := 0; i < aLen; i++ {
238+
for i := range aLen {
239239
found := false
240240
element := a[i]
241-
for j := 0; j < bLen; j++ {
241+
for j := range bLen {
242242
if visited[j] {
243243
continue
244244
}

0 commit comments

Comments
 (0)