mirror of
https://github.com/Nostalgica-Reverie/Content-Monorepo.git
synced 2026-05-14 02:22:00 +00:00
chore(actions): create json linter
This commit is contained in:
19
.forgejo/workflows/wf-json-linter.yml
Normal file
19
.forgejo/workflows/wf-json-linter.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: JSON linter
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
paths:
|
||||
- '**/*.json'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**/*.json'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: technocality
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Lint JSON
|
||||
run: find . -name "*.json" | xargs -I{} jq empty {}
|
||||
Reference in New Issue
Block a user