Skip to content

Commit

Permalink
Add validation and format workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
smithumble committed Jun 4, 2024
1 parent 960a09d commit dbf18bc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/validate-data-model.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Data model validation
name: Data Model Validation

on:
[push,pull_request]
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/validate-json-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: JSON Format Validation

on:
[push,pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Format json
run: |
python json_files_format.py
- name: Check json changes
run: |
(set -e; [[ $(git diff) ]] && { git diff; exit 1; } || exit 0)
21 changes: 21 additions & 0 deletions .github/workflows/validate-json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: JSON Validation

on:
[push,pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Validate json
run: |
python json_files_validate.py

0 comments on commit dbf18bc

Please sign in to comment.