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 39b81e7
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 19 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
27 changes: 16 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,41 @@ on:
- master
- main
pull_request:
name: Build
name: Test
jobs:
test:
name: Test
name: Run tests
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
name: Coverage report
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.18

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.18

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.18

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.18

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.18

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.18

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.18

0 comments on commit 39b81e7

Please sign in to comment.