-
Notifications
You must be signed in to change notification settings - Fork 460
54 lines (48 loc) · 1.56 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Lint
on: [push, pull_request]
jobs:
all-json-valid:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint Valid Json
run: |
find quirks/ -name '*.json' -print0 -maxdepth 1 | while IFS= read -r -d '' filename; do
echo "Validating $(basename "$filename")"
python -mjson.tool "$filename" > /dev/null
done
change-password-urls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint Sort Order
run: cat quirks/change-password-URLs.json | sed '1,1d' | sed '$d' | sort -c
password-rules:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint Sort Order
run: cat quirks/password-rules.json | grep "^ \"" | sort -c
websites-shared-credentials:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Lint Sort Order
run: ruby .github/workflows/lint-scripts/websites-shared-credentials-sort-order.rb
- name: Lint Duplicates
run: ruby .github/workflows/lint-scripts/websites-shared-credentials-duplicates.rb
- name: Verify Generated Files
run: ruby tools/convert-shared-credential-to-legacy-format.rb --verify
validate-schemas:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install ajv-cli
run: npm install -g ajv-cli
- name: Validate JSONs against their schemas
run: ./tools/validate-json-schemas.sh