-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: json schema support for frontmatter
- Loading branch information
1 parent
e143d44
commit c2ae47a
Showing
8 changed files
with
195 additions
and
103 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
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
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
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,14 +1,29 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# run locally | ||
# run tests locally | ||
# | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
rm -rf ./fflint | ||
if [ -f "./fflint" ]; then | ||
echo "INFO: removing old build of fflint" | ||
rm ./fflint | ||
fi | ||
|
||
echo "INFO: building new fflint" | ||
go build -o ./fflint cmd/fflint/main.go | ||
export PATH=$PATH:$(pwd) | ||
fflint version | ||
go test -timeout 30s -run "^TestFflint$" github.com/FileFormatInfo/fflint/cmd/fflint | ||
if [ ! -f "./fflint" ]; then | ||
echo "ERROR: failed to build fflint" | ||
exit 1 | ||
fi | ||
|
||
|
||
export PATH=$(pwd):$PATH | ||
echo "INFO: running fflint version $(fflint version)" | ||
|
||
echo "INFO: running tests" | ||
go test -timeout 30s -run "^TestFflint$" github.com/FileFormatInfo/fflint/cmd/fflint | ||
|
||
echo "INFO: complete at $(date -u +%Y-%m-%dT%H:%M:%SZ)" |
Oops, something went wrong.