Skip to content

Commit 7cd22c6

Browse files
committed
Simplify GitHub Action setup
Use `stable` as Go version. Fix naming for linter job. Remove unnecessary builds.
1 parent 2c5fab9 commit 7cd22c6

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,18 @@ on:
1212
- main
1313

1414
jobs:
15-
build:
15+
golangci-lint:
1616
name: golangci-lint
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: 1.23.x
22+
go-version: stable
2323

2424
- name: Check out code into the Go module directory
2525
uses: actions/checkout@v4
2626

27-
- name: Build source code
28-
run: go build ./...
29-
3027
- name: golangci-lint
3128
uses: golangci/golangci-lint-action@v6
3229
with:

.github/workflows/tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,14 @@ jobs:
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: 1.23.x
22+
go-version: stable
2323

2424
- name: Check out code into the Go module directory
2525
uses: actions/checkout@v4
2626

27-
- name: Build Go Code
28-
run: |
29-
go build ./...
30-
3127
- name: Run Go Unit Tests
3228
run: |
33-
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
34-
ginkgo run \
29+
go run -mod=mod github.com/onsi/ginkgo/v2/ginkgo run \
3530
--coverprofile=unit.coverprofile \
3631
--randomize-all \
3732
--randomize-suites \

0 commit comments

Comments
 (0)