From 6c1361a6af8736c46f93233f6235bdc0d1050f9d Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Thu, 22 Feb 2024 17:40:11 +0900 Subject: [PATCH] Bump go from 1.21 to 1.22 (#176) Update go version in `go.mod` ``` $ go mod edit -go=1.22 ``` Bump go version on CI. --- .github/workflows/ci.yml | 2 +- .github/workflows/coverage.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/reviewdog.yml | 2 +- go.mod | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4ea6e1..76b6607 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - name: Build & Test run: | go build -v diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 8f72c10..b7e9c97 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - run: go build - uses: paambaati/codeclimate-action@v5.0.0 env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 767d8f0..2c2145f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: run: git fetch --force --tags - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - name: Release via goreleaser uses: goreleaser/goreleaser-action@v5 with: diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 52e5b13..03b4592 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -10,7 +10,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - uses: reviewdog/action-staticcheck@v1 with: fail_on_error: true diff --git a/go.mod b/go.mod index 487498d..4744668 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/toshimaru/nyan -go 1.21.0 +go 1.22 require ( github.com/alecthomas/chroma v0.10.0