Skip to content

Commit

Permalink
Merge pull request #24 from sudo-bmitch/pr-gha-go-fmt
Browse files Browse the repository at this point in the history
Verify go fmt output is empty
  • Loading branch information
mnm678 authored Nov 15, 2021
2 parents 26d3060 + 4d026dc commit f100ea8
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,20 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: Format
run: go fmt ./...
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v ./...
- name: Go Format
if: matrix.os == 'ubuntu-latest' && matrix.go == '1.17.x'
run: test -z "$(go fmt ./...)"

- name: Go Vet
if: matrix.os == 'ubuntu-latest' && matrix.go == '1.17.x'
run: test -z "$(go vet ./...)"

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

- name: Build
run: go build -v ./...

0 comments on commit f100ea8

Please sign in to comment.