Don't require empty objects #334
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
name: Build Check | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
check-schema: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out code | |
uses: actions/checkout@v2 | |
- name: install dependencies | |
run: npm install | |
- name: compile schema | |
run: make compile-schema | |
- name: validate example | |
run: make validate-examples | |
- name: generate descriptions | |
run: make generate-descriptions | |
- name: check for diff | |
run: | | |
# need to "git add" to detect any changes to descriptions which are not checked in | |
# select files from both /examples | |
git add examples** | |
if git diff --cached --quiet | |
then | |
echo "No diff detected." | |
else | |
echo "Diff detected - did you run 'make generate-descriptions'?" | |
echo $(git diff --cached --name-only) | |
echo $(git diff --cached) | |
exit 1 | |
fi |