From 527412377d38826783cc1e3030d8e187255f926d Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 16 Nov 2024 10:13:48 +0800 Subject: [PATCH] ci(github): improve CI workflows for consistency and readability - 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 --- .github/workflows/go.yml | 6 ++++-- .github/workflows/goreleaser.yml | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 100d535..145ce7c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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: diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index b00b7a0..ddf1036 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -22,6 +22,7 @@ jobs: with: go-version-file: go.mod check-latest: true + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: