Skip to content

Commit 7580035

Browse files
committed
update github workflow settings
1 parent f915c2a commit 7580035

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

.github/workflows/codecov.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
7+
- uses: actions/checkout@v4
88
with:
99
fetch-depth: 2
10-
- uses: actions/setup-go@v3
10+
- uses: actions/setup-go@v5
1111
with:
12-
go-version: '1.19'
12+
go-version: '1.24'
13+
cache: true
1314
- name: Run coverage
1415
run: go test -race -coverprofile=coverage.txt -covermode=atomic
1516
- name: Upload coverage to Codecov
16-
run: bash <(curl -s https://codecov.io/bash)
17+
uses: codecov/codecov-action@v4
18+
with:
19+
file: ./coverage.txt
20+
fail_ci_if_error: true

.github/workflows/golangci-lint.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,21 @@ on:
66
jobs:
77
golangci:
88
strategy:
9+
fail-fast: false
910
matrix:
10-
go-version: [1.19]
11+
go-version: [1.23, 1.24]
1112
name: lint
1213
runs-on: ubuntu-latest
1314
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-go@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v5
1617
with:
1718
go-version: ${{ matrix.go-version }}
1819
cache: true
1920
- name: Vendoring Go dependencies
2021
run: go mod vendor
2122
- name: golangci-lint
22-
uses: golangci/golangci-lint-action@v3
23+
uses: golangci/golangci-lint-action@v4
2324
with:
24-
version: v1.50.1
25-
skip-pkg-cache: true
26-
skip-build-cache: true
25+
version: v1.64.5
2726
args: --timeout=5m

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ jobs:
77
test:
88
strategy:
99
matrix:
10-
go-version: [1.18, 1.19]
10+
go-version: [1.23, 1.24]
1111
name: test
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: checkout
15-
uses: actions/checkout@v3
16-
- uses: actions/setup-go@v3
15+
uses: actions/checkout@v4
16+
- uses: actions/setup-go@v5
1717
with:
1818
go-version: ${{ matrix.go-version }}
1919
- name: Print go version
@@ -22,6 +22,6 @@ jobs:
2222
run: go test -json ./... > test.json
2323
- name: Annotate tests
2424
if: always()
25-
uses: guyarb/golang-test-annotations@v0.6.0
25+
uses: guyarb/golang-test-annotations@v0.8.0
2626
with:
2727
test-results: test.json

0 commit comments

Comments
 (0)