Skip to content

Commit 0fc8769

Browse files
authored
ci: ensure go files are formatted with gofmt (#377)
I've just added this at the end of the test jobs since everything is so quick I don't think its worth having dedicated jobs for these Signed-off-by: Gareth Jones <[email protected]>
1 parent 5f5c477 commit 0fc8769

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
check-latest: true
3838

3939
- run: go test ./...
40+
- run: gofmt -s -d */**.go
4041
tests_osv-linter:
4142
permissions:
4243
contents: read # to fetch code (actions/checkout)
@@ -57,6 +58,7 @@ jobs:
5758
check-latest: true
5859

5960
- run: go test ./...
61+
- run: gofmt -s -d */**.go
6062

6163
ecosystem_lists:
6264
permissions:

0 commit comments

Comments
 (0)