This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
awkward: some of our testdata Go files have syntax errors! (#165)
* awkward: some of our testdata Go files have syntax errors! ``` $ find internal/testdata -type f -name '*.go' -exec go fmt {} \; internal/testdata/child_symbols.go:67:2: expected declaration, found '}' exit status 2 ``` I didn't realize this because the Go parser is surprisingly good (and silent) about handling file parsing errors. This adds a CI check which ensures our files are syntactically valid at least. Signed-off-by: Stephen Gutekanst <[email protected]>
- Loading branch information
Stephen Gutekanst
authored
Jun 16, 2021
1 parent
ce30aee
commit 05c7a45
Showing
3 changed files
with
208 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
steps: | ||
- label: ':go:' | ||
command: find internal/testdata -type f -name '*.go' -exec go fmt {} \; | ||
- label: ':go:' | ||
command: go test ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters