You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
31 lines
657 B
YAML
31 lines
657 B
YAML
name: pr_jsonlint
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'module/webui/locales/*.json'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: Install JSON linter
|
|
run: npm install -g jsonlint
|
|
|
|
- name: Lint JSON files
|
|
run: |
|
|
for file in $(find module/webui/locales -name "*.json"); do
|
|
echo "Checking $file"
|
|
if ! jsonlint "$file"; then
|
|
echo "Error in $file"
|
|
exit 1
|
|
fi
|
|
done |