Skip to content

Commit

Permalink
update golangci-lint and golang version used by github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0pcom committed Oct 19, 2024
1 parent 06a4e87 commit 420aae2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Release
# only trigger on pull request closed events
on:
push:
tags:
- '*'
tags:
- '*'
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.23.x
- uses: actions/checkout@v4
- name: Install Requirements
run: |
Expand All @@ -21,14 +21,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make github-release

darwin:
needs: linux
runs-on: macos-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.23.x
- uses: actions/checkout@v4
- name: Install Requirements
run: |
Expand All @@ -39,14 +39,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make github-release-darwin

windows:
needs: darwin
runs-on: windows-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.23.x
- uses: actions/checkout@v4
- name: Install Requirements
shell: pwsh
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,46 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.21.4
go-version: 1.23.1
- uses: actions/checkout@v3
- name: Install Requirements
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.1
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
go mod vendor
- name: Checking Format and Testing
run: make check
- name: Build
run: make build

darwin:
needs: linux
runs-on: macos-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21.4
go-version: 1.23.1
- uses: actions/checkout@v3
- name: Install Requirements
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.1
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
go mod vendor
- name: Checking Format and Testing
run: make check
- name: Build
run: make build

windows:
needs: linux
runs-on: windows-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21.4
go-version: 1.23.1
- uses: actions/checkout@v3
- name: Install Requirements
run: |
choco install make
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.1
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0
go mod vendor
- name: Testing
run: |
Expand Down

0 comments on commit 420aae2

Please sign in to comment.