Skip to content

Commit 20d6f3a

Browse files
authoredNov 29, 2024··
Update floor Go version to 1.21 (#20)
1 parent 361980f commit 20d6f3a

File tree

5 files changed

+15
-21
lines changed

5 files changed

+15
-21
lines changed
 

‎.github/workflows/build.yml

+9-11
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,22 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os:
20-
- macos-11
21-
- macos-12
22-
- ubuntu-22.04
20+
- macos-13
21+
- macos-14
22+
- ubuntu-24.04
2323
- windows-2022
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
with:
2727
fetch-depth: 0
28-
- uses: actions/setup-go@v3
28+
- uses: actions/setup-go@v5
2929
with:
30-
go-version: '^1.18.4'
31-
cache: true
30+
go-version-file: go.mod
3231
- name: golangci-lint
33-
uses: golangci/golangci-lint-action@v3
32+
uses: golangci/golangci-lint-action@v6
3433
with:
35-
version: v1.48
36-
skip-pkg-cache: true
37-
skip-build-cache: true
34+
version: v1.62.2
35+
args: --timeout=30m
3836
- run: go run mage.go test
3937
- run: go run mage.go snapshot
4038
if: ${{ matrix.os }} == 'ubuntu-22.04'

‎.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828

2929
# Initializes the CodeQL tools for scanning.
3030
- name: Initialize CodeQL

‎.github/workflows/release.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ jobs:
1010
name: Release
1111
runs-on: ubuntu-22.04
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
16-
- uses: actions/setup-go@v3
16+
- uses: actions/setup-go@v5
1717
with:
18-
go-version: '^1.18.4'
19-
cache: true
18+
go-version-file: go.mod
2019
- run: go run mage.go release
2120
env:
2221
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.golangci.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,19 @@ linters:
55
- bodyclose
66
- decorder
77
- durationcheck
8+
- err113
89
- errchkjson
910
- errname
1011
- errorlint
11-
- execinquery
1212
- exhaustive
13-
- exportloopref
1413
- gocritic
15-
- goerr113
1614
- gofmt
1715
- goimports
1816
- goprintffuncname
1917
- gosec
2018
- importas
2119
- misspell
2220
- nolintlint
23-
- nosnakecase
2421
- prealloc
2522
- predeclared
2623
- promlinter

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/curioswitch/go-reassign
22

3-
go 1.18
3+
go 1.21
44

55
require (
66
github.com/magefile/mage v1.14.0

0 commit comments

Comments
 (0)
Please sign in to comment.