Skip to content

Commit

Permalink
chore(go): upgrade go version to 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
alitto committed Jun 17, 2024
1 parent 561fe7b commit b558fbf
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,35 @@ jobs:
name: Test
strategy:
matrix:
go-version: [1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x]
go-version: [1.22.x, 1.21.x, 1.20.x, 1.19.x, 1.18.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2

- name: Test
run: make test
codecov:
name: Upload coverage report to Codecov
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
go-version-file: go.mod

- name: Test
run: make coverage

- uses: codecov/codecov-action@v4
with:
files: coverage.out
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamic_size/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/alitto/pond/examples/dynamic_size

go 1.21
go 1.22

require (
github.com/alitto/pond v1.7.1
Expand Down
2 changes: 1 addition & 1 deletion examples/fixed_size/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/alitto/pond/examples/fixed_size

go 1.21
go 1.22

require (
github.com/alitto/pond v1.7.1
Expand Down
2 changes: 1 addition & 1 deletion examples/group_context/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/alitto/pond/examples/group_context

go 1.21
go 1.22

require (
github.com/alitto/pond v1.7.1
Expand Down
2 changes: 1 addition & 1 deletion examples/pool_context/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/alitto/pond/examples/pool_context

go 1.21
go 1.22

require github.com/alitto/pond v1.7.1

Expand Down
2 changes: 1 addition & 1 deletion examples/prometheus/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/alitto/pond/examples/fixed_size

go 1.21
go 1.22

require (
github.com/alitto/pond v1.7.1
Expand Down
2 changes: 1 addition & 1 deletion examples/task_group/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/alitto/pond/examples/task_group

go 1.21
go 1.22

require (
github.com/alitto/pond v1.7.1
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/alitto/pond

go 1.21
go 1.22

0 comments on commit b558fbf

Please sign in to comment.