Skip to content

Commit

Permalink
Update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Sep 14, 2024
1 parent ebfc0ba commit ca01448
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: golangci-lint
on:
push:
branches:
- master
- master
pull_request:

permissions:
Expand All @@ -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
23 changes: 13 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Release
on:
push:
tags:
- 'v*'
- 't*'
- 'v*'
- 't*'

jobs:
# Set variables that will be available to all builds.
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit ca01448

Please sign in to comment.