From 596290b1ce9d97255b01cb17a711ea15051d5230 Mon Sep 17 00:00:00 2001 From: Matthias Diester Date: Wed, 8 Jan 2025 21:40:36 +0100 Subject: [PATCH] Simplify GitHub Action setup Use `stable` as Go version. Fix naming for linter job. Remove unnecessary builds. --- .github/workflows/golangci-lint.yml | 7 ++----- .github/workflows/release.yml | 2 +- .github/workflows/tests.yml | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index daca9be..ba41580 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -12,21 +12,18 @@ on: - main jobs: - build: + golangci-lint: name: golangci-lint runs-on: ubuntu-latest steps: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.23.x + go-version: stable - name: Check out code into the Go module directory uses: actions/checkout@v3 - - name: Build source code - run: go build ./... - - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39b31cc..bfcae2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.23.x + go-version: stable - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2715b16..15775e4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.23.x + go-version: stable - name: Check out code into the Go module directory uses: actions/checkout@v3