Skip to content

Commit c542d6e

Browse files
committed
ci(github): 🔧 adjust workflow actions config
1 parent e0b4ba3 commit c542d6e

File tree

3 files changed

+27
-29
lines changed

3 files changed

+27
-29
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
name: lint
1010
runs-on: ubuntu-latest
1111
steps:
12+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1213
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
1314
with:
1415
go-version-file: 'go.mod'
15-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1616
- name: golangci-lint
1717
uses: golangci/golangci-lint-action@v8
1818
with:

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v5
1919
with:
20-
go-version: 1.21
21-
stable: false
20+
go-version-file: 'go.mod'
2221

2322
- name: Test
2423
run: make test

.github/workflows/test.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
pull_request:
88

99
jobs:
10-
1110
test:
1211
runs-on: ubuntu-latest
1312
strategy:
@@ -19,28 +18,28 @@ jobs:
1918
- '1.24'
2019
- '1.x'
2120
steps:
22-
- uses: actions/checkout@v4
23-
24-
- name: Set up Go
25-
uses: actions/setup-go@v5
26-
with:
27-
go-version: ${{ matrix.go }}
28-
stable: false
29-
30-
- name: Build
31-
run: make build
32-
33-
- name: Test
34-
run: make test
35-
36-
- name: Test
37-
run: make coverage
38-
39-
- name: Codecov
40-
uses: codecov/codecov-action@v5
41-
with:
42-
token: ${{ secrets.CODECOV_TOKEN }}
43-
file: ./cover.out
44-
flags: unittests
45-
verbose: true
46-
if: matrix.go == '1.21'
21+
- uses: actions/checkout@v4
22+
23+
- name: Set up Go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version: ${{ matrix.go }}
27+
stable: false
28+
29+
- name: Build
30+
run: make build
31+
32+
- name: Test
33+
run: make test
34+
35+
- name: Test
36+
run: make coverage
37+
38+
- name: Codecov
39+
uses: codecov/codecov-action@v5
40+
with:
41+
token: ${{ secrets.CODECOV_TOKEN }}
42+
file: ./cover.out
43+
flags: unittests
44+
verbose: true
45+
if: matrix.go == '1.21'

0 commit comments

Comments
 (0)