forked from hacs/default
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 814 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Lint
on: [push, pull_request]
jobs:
jq:
name: JQ
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Clone origin
run: git clone --depth 1 https://github.com/hacs/default /tmp/repositories/default
- name: Set category
id: category
run: echo "::set-output name=category::$(python3 -m scripts.changed.category)"
- name: Validate ${{ matrix.checks }}
if: steps.category.outputs.category != 'Bad data []'
run:
jq --raw-output "." "${{steps.category.outputs.category}}"
sorted:
name: Sorted
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Check lists
run: python3 scripts/is_sorted.py