Skip to content

Commit

Permalink
ci(github): improve CI workflows for consistency and readability
Browse files Browse the repository at this point in the history
- Add checkout step in Go workflow
- Remove duplicate checkout step in Go workflow
- Add empty line for better readability in GoReleaser workflow

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Nov 16, 2024
1 parent 17afc21 commit 5274123
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v5
with:
go-version: "^1"
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
go-version-file: go.mod
check-latest: true

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand Down

0 comments on commit 5274123

Please sign in to comment.