-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add CI actions for OpenAPI and Rust
Partially address #3 Signed-off-by: Thomas Fossati <[email protected]>
- Loading branch information
1 parent
e848d5d
commit ef38095
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
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,21 @@ | ||
name: OpenAPI | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'doc/api/**' | ||
pull_request: | ||
paths: | ||
- 'doc/api/**' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install OpenAPI spec validator | ||
run: pip install openapi-spec-validator | ||
- name: Check key-broker API | ||
run: openapi-spec-validator doc/api/keys/keys.yaml |
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,24 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'rust-keybroker/**' | ||
pull_request | ||
paths: | ||
- 'rust-keybroker/**' | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: cargo build --manifest-path=rust-keybroker/Cargo.toml --verbose | ||
- name: Run tests | ||
run: cargo test --manifest-path=rust-keybroker/Cargo.toml --verbose |