From c10c5b28a487eb8943df2826465514f8c76a3e45 Mon Sep 17 00:00:00 2001 From: michimani Date: Tue, 25 Jun 2024 17:34:13 +0900 Subject: [PATCH 1/2] bump Go version to 1.22 #314 --- .github/workflows/onlytest.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- go.mod | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/onlytest.yml b/.github/workflows/onlytest.yml index 9cca403..d06c5c0 100644 --- a/.github/workflows/onlytest.yml +++ b/.github/workflows/onlytest.yml @@ -18,10 +18,10 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - name: Set up Go 1.20 + - name: Set up Go 1.22 uses: actions/setup-go@v3 with: - go-version: "1.20" + go-version: "1.22" - name: Check out code into the Go module directory uses: actions/checkout@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99402a3..4c07b1f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,10 +9,10 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - name: Set up Go 1.20 + - name: Set up Go 1.22 uses: actions/setup-go@v3 with: - go-version: "1.20" + go-version: "1.22" - name: Check out code into the Go module directory uses: actions/checkout@v3 diff --git a/go.mod b/go.mod index ea4f9cc..d831898 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/michimani/gotwi -go 1.20 +go 1.22 require github.com/stretchr/testify v1.7.0 From fd43f48c278be8f8816969d088d28d9d445e1763 Mon Sep 17 00:00:00 2001 From: michimani Date: Tue, 25 Jun 2024 17:48:07 +0900 Subject: [PATCH 2/2] bump version of some actions for using Node.js 20 #314 --- .github/workflows/onlytest.yml | 10 +++++++--- .github/workflows/release.yml | 8 ++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/onlytest.yml b/.github/workflows/onlytest.yml index d06c5c0..055c1c8 100644 --- a/.github/workflows/onlytest.yml +++ b/.github/workflows/onlytest.yml @@ -19,12 +19,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go 1.22 - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: "1.22" - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get dependencies run: go install @@ -33,4 +33,8 @@ jobs: run: go test -race -coverprofile="coverage.txt" -covermode=atomic github.com/michimani/gotwi/... -shuffle=on - name: Upload code coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c07b1f..f87f32f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,12 +10,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Go 1.22 - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: "1.22" - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get dependencies run: go install @@ -57,7 +57,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download artifact to get url to upload to release - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: artifact @@ -69,7 +69,7 @@ jobs: url=$(cat url.txt) echo "##[set-output name=upload_url;]$url" - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Pack source code in zip file run: |