Skip to content

Commit 2da19ae

Browse files
committed
add arduino-lint check
1 parent 6f6a5d8 commit 2da19ae

2 files changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/arduino-lint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
on: [push, pull_request]
2+
jobs:
3+
lint:
4+
runs-on: ubuntu-latest
5+
steps:
6+
- uses: actions/checkout@v2
7+
- uses: arduino/arduino-lint-action@v1
8+
with:
9+
library-manager: update
10+
compliance: strict

.github/workflows/jsoncheck.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
on: [push, pull_request]
1+
name: JSON check
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.json'
7+
pull_request:
8+
29
jobs:
3-
lint:
10+
test:
411
runs-on: ubuntu-latest
512
steps:
613
- uses: actions/checkout@v2
7-
- uses: arduino/arduino-lint-action@v1
8-
# with:
9-
# library-manager: update
10-
# compliance: strict
14+
- name: json-syntax-check
15+
uses: limitusus/json-syntax-check@v1
16+
with:
17+
pattern: "\\.json$"
18+

0 commit comments

Comments
 (0)