From 290551db6242f5556f2f838ac5a62bc8b1a1b36e Mon Sep 17 00:00:00 2001 From: Matthias Diester Date: Tue, 7 Jan 2025 21:25:41 +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/tests.yml | 6 +----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ffb6e32..0e81b48 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@v5 with: - go-version: 1.23.x + go-version: stable - name: Check out code into the Go module directory uses: actions/checkout@v4 - - name: Build source code - run: go build ./... - - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4998be9..9f594b7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,15 +19,11 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.23.x + go-version: stable - name: Check out code into the Go module directory uses: actions/checkout@v4 - - name: Build Go Code - run: | - go build ./... - - name: Run Go Unit Tests run: | go run -mod=mod github.com/onsi/ginkgo/v2/ginkgo run \