Skip to content

Commit 0a7b59d

Browse files
authored
Update build (#46)
* Update Go matrix to latest 3 versions. * Update minimum Go version to 1.21. * Update golangci-lint version. * Update GitHub actions. * Pin GitHub actions to hash, as recommended by OSSF. Signed-off-by: SuperQ <superq@gmail.com>
1 parent 515964d commit 0a7b59d

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
go: [ '1.20', '1.19', '1.18' ]
9+
go: [ '1.23', '1.22', '1.21' ]
1010
tags: [ 'strftime_native_errors', '' ]
1111
fail-fast: false
1212
name: "Go ${{ matrix.go }} test (tags: ${{ matrix.tags }})"
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1616
- name: Install Go stable version
17-
uses: actions/setup-go@v4
17+
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
1818
with:
1919
go-version: ${{ matrix.go }}
2020
- name: Test with coverage
2121
run: make STRFTIME_TAGS=${{ matrix.tags }} cover
2222
- name: Upload code coverage to codecov
23-
if: matrix.go == '1.20'
24-
uses: codecov/codecov-action@v3
23+
if: matrix.go == '1.23'
24+
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
2525
with:
2626
file: ./coverage.out

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ jobs:
55
name: lint
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
9-
- uses: actions/setup-go@v4
8+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
9+
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
1010
with:
11-
go-version: 1.18
11+
go-version: 1.21
1212
check-latest: true
13-
- uses: golangci/golangci-lint-action@v3
13+
- uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
1414
with:
15-
version: v1.45.2
15+
version: v1.60.1
1616
- name: Run go vet
1717
run: |
1818
go vet ./...

go.mod

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

3-
go 1.19
3+
go 1.21
44

55
require (
66
github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc

0 commit comments

Comments
 (0)