Skip to content

Commit

Permalink
Simplify GitHub Action setup
Browse files Browse the repository at this point in the history
Use `stable` as Go version.

Fix naming for linter job.

Remove unnecessary builds.
  • Loading branch information
HeavyWombat committed Jan 7, 2025
1 parent 2d91e92 commit 290551d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 290551d

Please sign in to comment.