From 9c81942e236599fab855936f94faf3486791a8c7 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 6 Jul 2021 21:35:20 +0200 Subject: [PATCH] Use GitHub Actions for JSON validation --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..3c3e65ff --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: JSON validation + +on: pull_request + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 2.7 + uses: actions/setup-python@v2 + with: + python-version: 2.7 + - name: Check apps.json + run: | + python -m json.tool apps.json + - name: Check locales + run: | + for i in ./locales/*.json; do python -m json.tool $i || return 1; done