Skip to content

Commit c448eb5

Browse files
ci: Validate according to the schema
1 parent 1b82aab commit c448eb5

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/check.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ jobs:
1717
with:
1818
sparse-checkout: |
1919
projects.yaml
20+
scripts/projects.schema.json
2021
sparse-checkout-cone-mode: false
22+
- name: Install boon
23+
run: |
24+
wget https://github.com/santhosh-tekuri/boon/releases/download/v0.6.1/boon-x86_64-unknown-linux-gnu.tar.gz
25+
tar -xzf boon-x86_64-unknown-linux-gnu.tar.gz
26+
sudo mv boon /usr/local/bin/boon
27+
2128
- name: Get names
2229
uses: mikefarah/yq@master
2330
id: projects-names
@@ -35,3 +42,7 @@ jobs:
3542
echo '```' >> $GITHUB_STEP_SUMMARY
3643
exit 1
3744
fi
45+
46+
- name: Validate according to the schema
47+
run: |
48+
boon scripts/projects.schema.json projects.yaml

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"yaml.schemas": {
3-
".vscode/projects.schema.json": "projects.yaml"
3+
"scripts/projects.schema.json": "projects.yaml"
44
}
55
}

0 commit comments

Comments
 (0)