Skip to content

Commit

Permalink
Merge pull request #10 from khalsz/bugfix/convert-to-camel-case
Browse files Browse the repository at this point in the history
Bugfix/convert to camel case
  • Loading branch information
khalsz authored Sep 19, 2024
2 parents 05da49e + 1223941 commit 698640d
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/medata-ci-workflows.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: Metadata CI Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main


jobs:
validate-json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: validate-json-files
id: json-validate
uses: GrantBirki/json-yaml-validate@v3

# - name: checkout codes
# uses: actions/checkout@v2



# run: ls -R
# - name: validate-json-file
# uses: cardinalby/schema-validator-action@v3
# with:
# file: ./**/*.json


with:
comment: "true"

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

- 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: 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"

0 comments on commit 698640d

Please sign in to comment.