mirror of
https://github.com/Prowlarr/Indexers.git
synced 2026-04-29 12:53:39 +01:00
* New: YAML Schema Validations * fixup! skip json when doing ymllint * fixup! * fixup! * fixup! * fixup! * fixup! validate login methods, filter names, captcha types * fixup! validate tracker type * fixup! validate tracker type * fixup! validate category mappings use a correct category * fixup! further download block validation * fixup! * fixup! validate links and legacy-links are valid urls * fixup! validate settings types * fixup! v6 doubanid * fixup! v5 json filter validation * fixup! xbit should be v5
36 lines
652 B
YAML
36 lines
652 B
YAML
---
|
|
name: Yaml Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint Yaml
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: yamllint version
|
|
run: |
|
|
yamllint --version
|
|
- name: yamllint run
|
|
run: |
|
|
for f in `find definitions -type f -name "*.yml"`
|
|
do
|
|
echo "$f"
|
|
yamllint "$f" --format github
|
|
done
|
|
schema_validate:
|
|
name: Validate Schema
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: yaml schema check
|
|
run: |
|
|
sh ./scripts/validate.sh
|