Skip to content

Commit

Permalink
feat: add develop to git action, fix campaign.schema.json
Browse files Browse the repository at this point in the history
  • Loading branch information
khalsz committed Sep 23, 2024
1 parent 6f10fc6 commit fd88f93
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/medata-ci-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,25 @@ jobs:
with:
schema: ukaea-schema/facility/hive/campaign.schema.json
file: ./ukaea-schema/examples/hive/campaign.json

- name: Validate experiment JSON
uses: cardinalby/schema-validator-action@v3
with:
schema: ./ukaea-schema/facility/hive/campaign.schema.json
file: ./ukaea-schema/examples/hive/campaign.json

- name: Validate facility JSON
uses: GrantBirki/json-yaml-validate@v3
with:
json_schema: ./ukaea-schema/facility/facility.schema.json
files: ./ukaea-schema/examples/facility.json
comment: "true"

# - name: Validate facility JSON
# uses: cardinalby/schema-validator-action@v3
# with:
# schema: ./ukaea-schema/facility/facility.schema.json
# file: ./ukaea-schema/examples/facility.json
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: custom-camel-case-validation
run: |
python validate_camel_case.py "./**/*.json"
file: /scicat-schema/*.json
readarray -d '' json_file_paths < <(find . -name *.json -print0)
echo ${json_file_paths[@]}
for json_file in ${json_file_paths[@]}; do
python validate_camel_case.py $json_file
done

0 comments on commit fd88f93

Please sign in to comment.