Skip to content

Commit

Permalink
feat: implement OpenAPI documentation (#162) (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Jul 11, 2024
1 parent d8c6d5d commit b89fc26
Show file tree
Hide file tree
Showing 52 changed files with 1,949 additions and 1,665 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: Swatinem/rust-cache@v2
if: ${{ needs.release-please.outputs.release_created }}
with:
cache-directories: |
~/.cargo/registry/src/**/librocksdb-sys-*
- name: Publish crate
if: ${{ needs.release-please.outputs.release_created }}
uses: actions-rs/cargo@v1
Expand Down
31 changes: 26 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: Swatinem/rust-cache@v2
with:
cache-directories: |
~/.cargo/registry/src/**/librocksdb-sys-*
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
Expand All @@ -95,3 +90,29 @@ jobs:
with:
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

Schema-Unchanged: # ensure schema is not changed
needs: Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: true

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Setup protoc
uses: arduino/setup-protoc@v1.1.2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Check schema
run: |
cargo run -- server schema --output-file /tmp/openapi.yaml
set -e
diff openapi.yaml /tmp/openapi.yaml
Loading

0 comments on commit b89fc26

Please sign in to comment.