Skip to content

Commit

Permalink
Merge pull request #201 from citation-file-format/lint-schema
Browse files Browse the repository at this point in the history
Lint schema
  • Loading branch information
sdruskat committed Jun 22, 2021
2 parents 3b78676 + c76007f commit 38d9b1f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: linting

on:
push:
paths:
- schema.json
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
# for manual trigger

jobs:
lint:
name: "lint schema"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out a copy of the repository

- name: lint the schema
run: |
cat schema.json | jq -S --indent 4 '.' > schema.sorted.json
diff schema.json schema.sorted.json

0 comments on commit 38d9b1f

Please sign in to comment.