diff --git a/.github/workflows/onlytest.yml b/.github/workflows/onlytest.yml index 9cca403..055c1c8 100644 --- a/.github/workflows/onlytest.yml +++ b/.github/workflows/onlytest.yml @@ -18,13 +18,13 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - name: Set up Go 1.20 - uses: actions/setup-go@v3 + - name: Set up Go 1.22 + uses: actions/setup-go@v5 with: - go-version: "1.20" + 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 99402a3..f87f32f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,13 +9,13 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - name: Set up Go 1.20 - uses: actions/setup-go@v3 + - name: Set up Go 1.22 + uses: actions/setup-go@v5 with: - go-version: "1.20" + 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: | 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