Skip to content

Commit

Permalink
GitHub: Adjust build action
Browse files Browse the repository at this point in the history
Also, clean up the step that formats the code.
  • Loading branch information
UlrichEckhardt committed Mar 25, 2024
1 parent 3aae592 commit e4bbaea
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,20 @@ jobs:
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .

- name: Format
run: go fmt ./... && git diff --quiet
run: |
go fmt ./...
git diff --quiet
- name: Lint
run: go vet ./...

- name: Test
run: go test -v ./...

- name: Build Broker
run: go build -v -C cmd/broker


build-1_21:
name: Build with Go 1.21
Expand All @@ -51,18 +53,20 @@ jobs:
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .

- name: Format
run: go fmt ./... && git diff --quiet
run: |
go fmt ./...
git diff --quiet
- name: Lint
run: go vet ./...

- name: Test
run: go test -v ./...

- name: Build Broker
run: go build -v -C cmd/broker


build-1_22:
name: Build with Go 1.22
Expand All @@ -82,9 +86,6 @@ jobs:
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .

- name: Format
run: |
go fmt ./...
Expand All @@ -95,3 +96,6 @@ jobs:

- name: Test
run: go test -v ./...

- name: Build Broker
run: go build -v -C cmd/broker

0 comments on commit e4bbaea

Please sign in to comment.