Skip to content

Commit

Permalink
Merge pull request #52 from catatsuy/update-go-1.22.4-and-goreleaser-…
Browse files Browse the repository at this point in the history
…action-v6

Update release workflow with Go 1.22.4 and GoReleaser v6
  • Loading branch information
catatsuy committed Jun 9, 2024
2 parents 891d0af + 803b283 commit 95e6d13
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
name: Go
on: [push]
jobs:

test:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.20.x' ]
go: ["1.22.x"]
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
id: go

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: test
run: |
go vet ./...
go test -shuffle on -cover -count 10 ./...
go build
- name: test
run: |
go vet ./...
go test -shuffle on -cover -count 10 ./...
go build
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -12,11 +12,11 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.4
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 95e6d13

Please sign in to comment.