Skip to content

Commit

Permalink
Merge pull request #9 from privacybydesign/gofmt-fix
Browse files Browse the repository at this point in the history
Fix: gofmt does not return non-zero exit codes on failure
  • Loading branch information
sietseringers authored Aug 3, 2022
2 parents 5ffa1db + 2223a58 commit 3f55d4d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/status-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: ^1.16

- name: Build
run: go build -v -o uniqueid-issuer-linux-amd64
Expand All @@ -30,10 +30,11 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: ^1.16

- name: Run gofmt
run: gofmt -d -e .
# gofmt does not return non-zero exit codes on failure, so we have to check that there are no issues using grep.
run: gofmt -d -e . | (! grep ^)

- name: Run go vet
run: go vet ./...
Expand Down

0 comments on commit 3f55d4d

Please sign in to comment.