debug #6
Workflow file for this run
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
on: push | |
name: Run cjval | |
jobs: | |
cjval: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: ls -la | |
- name: Install cjval from crates.io | |
uses: baptiste0928/[email protected] | |
with: | |
crate: cjval | |
features: "build-binary" | |
- name: cjval version | |
run: cjval --version | |
- name: Run cjval | |
run: cjval tmoaf.city.json > report.txt || true | |
- name: Check validation report | |
run: | | |
cat report.txt | |
if [ grep -P '(warning|invalid)' report.txt ] | |
then | |
echo "tmoaf.city.json is invalid or has errors" | |
exit 1 | |
else | |
echo "All good" | |
fi |