ISSUE #11: Ignore empty file option added #28
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: Self Test | |
'on': | |
pull_request: | |
branches: ['main'] | |
jobs: | |
runValidation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run PyTest(s) | |
run: | | |
pip install -r requirements.txt | |
pip install -r requirements-test.txt | |
pytest test/ -rxXs | |
- name: Run Action (valid files) | |
uses: ./ | |
with: | |
json-schema-file: test/schema/json_schema.json | |
yaml-json-file-dir: test/YAMLs/valid.json,test/JSONs/valid.json | |
- name: Run Action (empty files valid) | |
uses: ./ | |
with: | |
json-schema-file: test/schema/json_schema.json | |
yaml-json-file-dir: test/emptyJSONs,test/emptyYAMLSs | |
- name: Run Action (check mapping) | |
uses: ./ | |
with: | |
json-schema-file: test/schema/json_schema.json | |
yaml-json-file-dir: test/emptyJSONs,test/emptyYAMLSs | |
schema-mapping: 'test/emptyJSONs:test/schema/json_schema.json,test/emptyYAMLSs:test/schema/json_schema.json' |