From 1e8264a020553a4e6baf6c3b76146e6a0150c24b Mon Sep 17 00:00:00 2001 From: Alex Tsernoh Date: Tue, 5 Apr 2022 11:53:53 +0100 Subject: [PATCH] Initial action --- .github/wokflows/github-actions.yml | 12 ++++++++++++ tools/validate_json.py | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 .github/wokflows/github-actions.yml create mode 100644 tools/validate_json.py diff --git a/.github/wokflows/github-actions.yml b/.github/wokflows/github-actions.yml new file mode 100644 index 00000000..252f2c1f --- /dev/null +++ b/.github/wokflows/github-actions.yml @@ -0,0 +1,12 @@ +name: GitHub Actions Demo +on: [push] +jobs: + Validate-JSON: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Validate JSON + run: | + chmod +x ${{ github.workspace }}/tools/validate_json.py + python3 ${{ github.workspace }}/tools/validate_json.py \ No newline at end of file diff --git a/tools/validate_json.py b/tools/validate_json.py new file mode 100644 index 00000000..e7bcac32 --- /dev/null +++ b/tools/validate_json.py @@ -0,0 +1,5 @@ +import json + +json.load(open("./../web/atlas.json")) + +print("JSON is valid") \ No newline at end of file