From ca01448bc2ce0c76bbbbb448eb402fe74f70e936 Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Sat, 14 Sep 2024 19:33:10 +0100 Subject: [PATCH] Update workflows. --- .github/workflows/golangci-lint.yml | 11 ++++++----- .github/workflows/release.yml | 23 +++++++++++++---------- .github/workflows/test.yml | 7 ++++--- main.go | 2 +- 4 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index f650ea3..2d0d297 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -2,7 +2,7 @@ name: golangci-lint on: push: branches: - - master + - master pull_request: permissions: @@ -13,12 +13,13 @@ jobs: name: lint runs-on: ubuntu-22.04 steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: - go-version: '1.20' - - uses: actions/checkout@v3 + cache: false + go-version: '1.22' + - uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: version: latest args: --timeout=60m diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea97a23..4c392de 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,8 @@ name: Release on: push: tags: - - 'v*' - - 't*' + - 'v*' + - 't*' jobs: # Set variables that will be available to all builds. @@ -44,12 +44,13 @@ jobs: needs: [create_release, env_vars] steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: '^1.20' + cache: false + go-version: '^1.22' - name: Check out repository into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Select correct tag run: git checkout ${{ github.ref_name }} @@ -121,12 +122,13 @@ jobs: needs: [create_release, env_vars] steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: '^1.20' + cache: false + go-version: '^1.22' - name: Check out repository into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Select correct tag run: git checkout ${{ github.ref_name }} @@ -166,9 +168,10 @@ jobs: needs: [create_release, env_vars] steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: '^1.20' + cache: false + go-version: '^1.22' - name: Check out repository into the Go module directory uses: actions/checkout@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8917f10..74ce480 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,8 +8,9 @@ jobs: test: runs-on: ubuntu-22.04 steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: - go-version: '1.20' - - uses: actions/checkout@v3 + cache: false + go-version: '1.22' + - uses: actions/checkout@v4 - uses: n8maninger/action-golang-test@v1 diff --git a/main.go b/main.go index 89744a2..d4b12ac 100644 --- a/main.go +++ b/main.go @@ -51,7 +51,7 @@ import ( ) // ReleaseVersion is the release version for the code. -var ReleaseVersion = "0.3.0" +var ReleaseVersion = "0.3.1" func main() { os.Exit(main2())