Skip to content

Commit

Permalink
GitHub ActionsのGo関連の細かな修正 (#61)
Browse files Browse the repository at this point in the history
* go versionの指定にgo.modを利用

* goreleaserアップデート対応
  • Loading branch information
hekki authored Dec 25, 2024
1 parent d60313a commit 16eb643
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: 'go.mod'

- name: Setup tools
run: |
run: |
make tools
- name: make test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: 'go.mod'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: 'go.mod'

- name: Setup tools
run: |
Expand All @@ -38,10 +38,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: 'go.mod'

- name: Setup tools
run: |
run: |
make tools
- name: make lint-go
Expand All @@ -64,10 +64,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version-file: 'go.mod'

- name: Setup tools
run: |
run: |
make tools
- name: make test
Expand Down

0 comments on commit 16eb643

Please sign in to comment.