From 6ac983c154f6251c6f8c2e124295ac745eaa5990 Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Thu, 1 Feb 2024 16:53:40 +0700 Subject: [PATCH] chore: add JSON validation workflow to CI (#2567) * chore: add JSON validation workflow to CI * chore: test on all actions * chore: test only on JSON file --- .github/workflows/jsoncheck.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/jsoncheck.yml diff --git a/.github/workflows/jsoncheck.yml b/.github/workflows/jsoncheck.yml new file mode 100644 index 0000000000..1942d8fa02 --- /dev/null +++ b/.github/workflows/jsoncheck.yml @@ -0,0 +1,16 @@ +name: JSON check + +on: + push: + paths: + - '**.json' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: json-syntax-check + uses: limitusus/json-syntax-check@v2 + with: + pattern: "\\.json$"