Skip to content

Commit

Permalink
Fixed go version
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSal committed May 21, 2024
1 parent e1fb913 commit 9e284fd
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- 'v*'
- "v*"

name: Release

Expand All @@ -12,45 +12,45 @@ defaults:
jobs:
lint:
name: Lint
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: "1.22.3"
- name: golangci-lint
uses: golangci/golangci-lint-action@v2.5.2
with:
version: latest
test:
name: Test
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
needs: lint
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: "1.16.3"
- run: go test -v -cover
release:
name: Release
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
needs: test
strategy:
matrix:
goosarch:
- 'linux/amd64'
- 'linux/arm64'
- 'darwin/amd64'
- 'darwin/arm64'
- "linux/amd64"
- "linux/arm64"
- "darwin/amd64"
- "darwin/arm64"
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: '1.16.3'
go-version: "1.16.3"
- name: Get OS and arch info
run: |
GOOSARCH=${{matrix.goosarch}}
Expand All @@ -64,8 +64,7 @@ jobs:
run: |
go build -o "$BINARY_NAME" -v
- name: Release Notes
run:
git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md"
run: git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md"
- name: Release with Notes
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 9e284fd

Please sign in to comment.