Skip to content

Commit ea4563a

Browse files
committed
update CI workflow and enforce LF line endings
- Updated supported OS matrix in CI to include macOS and Windows. - Bumped actions versions (checkout and setup-go) in CI. - Updated GolangCI-Lint action to v9 and set version explicitly. - Added `.gitattributes` to enforce LF line endings. - Adjusted Go version in `go.mod` and CI matrix.
1 parent 34acb6f commit ea4563a

3 files changed

Lines changed: 15 additions & 11 deletions

File tree

‎.gitattributes‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.go text eol=lf

‎.github/workflows/ci.yml‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,30 @@ jobs:
1111
golangci:
1212
strategy:
1313
matrix:
14-
go-version: [ 1.24.x ]
15-
os: [ ubuntu-latest ]
14+
go: [ stable ]
15+
os: [ ubuntu-latest, macos-latest, windows-latest ]
1616
name: lint
1717
runs-on: ${{ matrix.os }}
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v6
20+
- uses: actions/setup-go@v6
21+
with:
22+
go-version: ${{ matrix.go }}
2023
- name: golangci-lint
21-
uses: golangci/golangci-lint-action@v3
24+
uses: golangci/golangci-lint-action@v9
25+
with:
26+
version: v2.13
2227

2328
test:
2429
strategy:
2530
matrix:
26-
go-version: [ 1.24.x ]
31+
go-version: [ 1.26.x ]
2732
os: [ ubuntu-latest, macos-latest, windows-latest ]
2833
runs-on: ${{ matrix.os }}
2934
steps:
30-
- name: Install Go
31-
uses: actions/setup-go@v3
35+
- uses: actions/checkout@v6
36+
- uses: actions/setup-go@v6
3237
with:
33-
go-version: ${{ matrix.go-version }}
34-
- name: Checkout code
35-
uses: actions/checkout@v3
38+
go-version: ${{ matrix.go }}
3639
- name: Test
3740
run: go test ./...

‎go.mod‎

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

3-
go 1.26.8
3+
go 1.26.0
44

55
require (
66
github.com/stretchr/testify v1.12.1

0 commit comments

Comments
 (0)