Skip to content

Commit

Permalink
new: added configs and themes validation action
Browse files Browse the repository at this point in the history
  • Loading branch information
pamburus committed Jun 10, 2024
1 parent 429beb2 commit 0b430b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,15 @@ jobs:

- name: Check formatting
run: cargo +nightly fmt --verbose --all --check

- name: Validate configs
uses: cardinalby/schema-validator-action@v3
with:
file: 'etc/defaults/config*.yaml'
schema: 'schema/json/config.schema.json'

- name: Validate themes
uses: cardinalby/schema-validator-action@v3
with:
file: 'etc/defaults/themes/*.yaml|src/testing/assets/themes/*.yaml'
schema: 'schema/json/theme.schema.json'
1 change: 0 additions & 1 deletion schema/json/theme.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "schema:theme",
"$ref": "#/definitions/theme",
"definitions": {
"theme": {
Expand Down

0 comments on commit 0b430b2

Please sign in to comment.