-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automated validation of animations (#45)
* Add automated validation of animations This runs ajv js validation library using the generated schema and any lottie animations in directories. This will help ensure the schema definition is consistent with what we expect. Monitored directories are- * tests/animations/valid * tests/animations/invalid * docs/static/examples Only including a few test files in initial commit, more can be added as needed/wanted.
- Loading branch information
Showing
8 changed files
with
6,008 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Test Animations | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
schema: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Setup | ||
run: | | ||
sudo apt update -q | ||
sudo apt install -yy python3 python3-pip graphviz | ||
pip install -r tools/requirements.txt | ||
npm install | ||
- | ||
name: Validate Animations | ||
run: | | ||
make validate_animations |
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,6 +1,7 @@ | ||
docs/lottie.schema.json | ||
site/ | ||
__pycache__ | ||
node_modules | ||
|
||
# Operating system | ||
.DS_Store |
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
Oops, something went wrong.