Skip to content

Commit

Permalink
Validate on GitHub Actions (dariusk#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Apr 27, 2020
1 parent 8d0d939 commit 468aebe
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 468aebe

Please # to comment.