27 lines
488 B
YAML
27 lines
488 B
YAML
name: JSON check
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "**.json"
|
|
pull_request:
|
|
types: [opened, review_requested, synchronize]
|
|
|
|
jobs:
|
|
json_validator:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Check for duplicates
|
|
run : |
|
|
sh dupes.sh
|
|
|
|
- name: Check JSON syntax
|
|
run: |
|
|
if ! jq empty pools-v2.json; then
|
|
echo "JSON syntax check failed"
|
|
exit 1
|
|
fi
|