Skip to content

Commit 0ecc214

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] lint JSON files
1 parent cc3d0fe commit 0ecc214

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/prettier-json.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Prettier JSON Lint
3+
4+
on: # yamllint disable-line rule:truthy
5+
push:
6+
branches: ['main']
7+
pull_request:
8+
# The branches below must be a subset of the branches above
9+
branches: ['main']
10+
workflow_dispatch:
11+
12+
jobs:
13+
json-lint:
14+
name: 'Prettier JSON Lint'
15+
runs-on: ['ubuntu-24.04']
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 24.x
23+
24+
- name: Install Prettier
25+
run: |
26+
npm install -g [email protected]
27+
28+
- name: Prettier LINT / Style JSON
29+
run: >
30+
prettier --check ./src/**/*.json

0 commit comments

Comments
 (0)