Skip to content

Commit 004f247

Browse files
committed
chore: update go versions
1 parent a6f63bd commit 004f247

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

.github/workflows/build_and_test.yml

+20-12
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
go:
16-
- "1.20"
17-
- "1.21"
16+
- '1.22'
17+
- '1.23'
18+
- '1.24'
1819
name: run tests with go version ${{ matrix.go }}
1920
steps:
2021
- name: install go
@@ -33,22 +34,29 @@ jobs:
3334
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
3435
run: |
3536
make cover
36-
37-
- name: Coveralls
38-
if: (matrix.go == '1.21')
39-
env:
40-
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
41-
run: |
42-
if [[ -n "$COVERALLS_TOKEN" ]]; then
43-
make coveralls
44-
fi
37+
38+
- name: Send coverage
39+
uses: shogo82148/actions-goveralls@v1
40+
with:
41+
path-to-profile: coverage.out
42+
flag-name: Go-${{ matrix.go }}
43+
parallel: true
4544

4645
- name: Upload coverage
47-
if: (matrix.go == '1.21')
46+
if: (matrix.go == '1.23')
4847
uses: actions/upload-artifact@v4
4948
with:
5049
name: coverage
5150
path: coverage.*
5251

5352
- name: Assert no changes
5453
run: make assert-no-changes
54+
55+
# notifies that all test jobs are finished.
56+
finish:
57+
needs: build
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: shogo82148/actions-goveralls@v1
61+
with:
62+
parallel-finished: true

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v5
1919
with:
20-
go-version: ">=1.20.2"
20+
go-version: ">=1.23.2"
2121
- name: Ensure Go
2222
run: go version
2323

.github/workflows/release_check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v5
1717
with:
18-
go-version: ">=1.20.2"
18+
go-version: ">=1.23.2"
1919
- name: Ensure Go
2020
run: go version
2121

0 commit comments

Comments
 (0)