Skip to content

Commit

Permalink
Check formatting during test run
Browse files Browse the repository at this point in the history
In case the code formatting differs from gofmt's the test run will
now fail.

AUTO-405
  • Loading branch information
s22su committed Apr 19, 2022
1 parent 9226b4c commit 84bef67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ jobs:
- name: Build
run: go build -v ./...

- name: Check formatting
run: files=$(gofmt -l .) && [ -z "$files" ]

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

0 comments on commit 84bef67

Please sign in to comment.