mirror of
https://github.com/github/codeql.git
synced 2026-01-29 14:23:03 +01:00
Make the gofmt CI test actaully fatal
Turns out gofmt doesn't actually return 1 when it finds problems, only when it finds source files which don't compile (all of which are now excluded). This also fixes existing overlooked inconsistencies as a result of this mistake.
This commit is contained in:
2
.github/workflows/codeqltest.yml
vendored
2
.github/workflows/codeqltest.yml
vendored
@@ -34,7 +34,7 @@ jobs:
|
||||
run: env PATH=$PATH:$HOME/codeql make
|
||||
|
||||
- name: Check that all QL and Go code is autoformatted
|
||||
run: env PATH=$PATH:$HOME/codeql make QL_AUTOFORMAT=--check-only GO_AUTOFORMAT=-d autoformat
|
||||
run: env PATH=$PATH:$HOME/codeql make check-formatting
|
||||
|
||||
- name: Test
|
||||
run: env PATH=$PATH:$HOME/codeql make test
|
||||
|
||||
Reference in New Issue
Block a user