diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..e60dbdb4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,39 @@ +name: Test + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@v2 + + - name: Set up node + uses: actions/setup-node@v1 + with: + python-version: '10.x' + + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.8' + + - name: Install dependencies + run: | + npm install + python -m pip install --upgrade pip + python -m pip install --upgrade jsonchecker + + - name: JSON lint + shell: bash + run: | + grunt + + - name: Check for duplicate values + shell: bash + run: | + # Skip this file, it has valid duplicates: + rm data/words/verbs_with_conjugations.json + + jsonchecker data --values --quiet