forked from canonical/rockcraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add generated schema and github workflow
- Loading branch information
Anas Husseini
committed
Jan 18, 2024
1 parent
a8c230a
commit 516111d
Showing
4 changed files
with
676 additions
and
5 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: schema | ||
on: [pull_request] | ||
|
||
jobs: | ||
generate-schema: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout rockcraft | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install requirements | ||
run: pip install -r requirements.txt | ||
|
||
- name: Run generator script | ||
run: python .github/scripts/schema.py > generated_schema.json | ||
|
||
- name: Check with stored schema | ||
run: diff generated_schema.json schemas/rockcraft_schema.json > /dev/null |
Oops, something went wrong.