diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index bcec69f..ed6cc1b 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -13,13 +13,15 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-go@v5 + - name: Setup Go + uses: actions/setup-go@v5 with: go-version: 1.23.x - - name: golangci-lint + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run golangci-lint uses: golangci/golangci-lint-action@v6 with: version: v1.60 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c5e669e..cab1e2f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,19 +5,22 @@ on: tags: - v* +permissions: + contents: write + jobs: goreleaser: name: GoReleaser runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up Go + - name: Setup Go uses: actions/setup-go@v5 with: go-version: 1.23.x + - name: Checkout code + uses: actions/checkout@v4 + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e62ebf4..5238074 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,16 +17,16 @@ jobs: os: [ ubuntu-latest, macos-latest, windows-latest ] runs-on: ${{matrix.os}} steps: - - name: Set up Go ${{matrix.go-version}} + - name: Setup Go uses: actions/setup-go@v5 with: go-version: ${{matrix.go}} id: go - - name: Check out code into the Go module directory + - name: Checkout code uses: actions/checkout@v4 - - name: Download Go modules + - name: Download dependencies run: go mod download - name: Build