Skip to content

Commit

Permalink
fix(wadm): Adds oam schema to wadm crate
Browse files Browse the repository at this point in the history
This also adds a check to make sure that the two schemas are in sync
since I had to copy it over. Using something like a build.rs would have
had the same issue in that the file was outside of the crate

Signed-off-by: Taylor Thomas <taylor@cosmonic.com>
  • Loading branch information
thomastaylor312 committed May 24, 2024
1 parent 5e3d527 commit 61c94fc
Show file tree
Hide file tree
Showing 3 changed files with 417 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Check that Wadm JSON Schema is up-to-date
shell: bash
run: |
diff ./oam/oam.schema.json ./crates/wadm/oam.schema.json || { echo 'Wadm JSON Schema is out of date. Please copy the file from oam/oam.schema.json to ./crates/wadm/oam.schema.json and commit the change.'; exit 1; }
- name: Install latest Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
Expand Down
Loading

0 comments on commit 61c94fc

Please sign in to comment.