feat: add JSON lint check for i18n folder #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JSON Lint | |
on: | |
pull_request: | |
branches: [ "main", "master" ] | |
push: | |
branches: [ "main", "master" ] | |
jobs: | |
validate-json: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install jsonlint | |
run: | | |
npm install --global jsonlint | |
- name: Run JSON lint | |
run: | | |
# Find all JSON files in the i18n folder | |
find src/portal/src/i18n -name "*.json" -print0 | xargs -0 jsonlint -q |