Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/jsonlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check Json format

on: [push, pull_request]

jobs:
jsonlint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Get Diff Action
uses: technote-space/[email protected]
with:
SUFFIX_FILTER: .json
- name: Install node
run: |
sudo apt install nodejs
- name: Install jsonlint
run: |
sudo npm install -g jsonlint
- name: Lint with jsonlint
run: |
for file in ${{ env.GIT_DIFF }}; do npx jsonlint $file; done
if: env.GIT_DIFF