-
Notifications
You must be signed in to change notification settings - Fork 29
77 lines (61 loc) · 2.17 KB
/
zarf-lint.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Zarf Lint
on:
pull_request:
branches:
- "main"
paths:
- "**/zarf.yaml"
- ".github/workflows/zarf-lint.yaml"
concurrency:
group: zarf-lint-${{ github.ref }}
cancel-in-progress: true
jobs:
zarf-lint:
runs-on: ubuntu-latest
name: Lint Zarf Manifest
permissions:
contents: read
steps:
- name: Checkout Repo
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version-file: "pyproject.toml"
- name: Download Zarf Package Schema
# TODO: renovate setup
run: curl -o zarf.schema.json https://raw.githubusercontent.com/defenseunicorns/uds-cli/v0.14.0/zarf.schema.json
- name: Install jsonschema
run: pip install check-jsonschema==0.28.0
- name: Validate API zarf.yaml
if: always()
run: |
check-jsonschema packages/api/zarf.yaml --schemafile zarf.schema.json
- name: Validate llama-cpp-python zarf.yaml
if: always()
run: |
check-jsonschema packages/llama-cpp-python/zarf.yaml --schemafile zarf.schema.json
- name: Validate repeater zarf.yaml
if: always()
run: |
check-jsonschema packages/repeater/zarf.yaml --schemafile zarf.schema.json
- name: Validate supabase zarf.yaml
if: always()
run: |
check-jsonschema packages/supabase/zarf.yaml --schemafile zarf.schema.json
- name: Validate text-embeddings zarf.yaml
if: always()
run: |
check-jsonschema packages/text-embeddings/zarf.yaml --schemafile zarf.schema.json
- name: Validate UI zarf.yaml
if: always()
run: |
check-jsonschema packages/ui/zarf.yaml --schemafile zarf.schema.json
- name: Validate vllm zarf.yaml
if: always()
run: |
check-jsonschema packages/vllm/zarf.yaml --schemafile zarf.schema.json
- name: Validate whisper zarf.yaml
if: always()
run: |
check-jsonschema packages/whisper/zarf.yaml --schemafile zarf.schema.json