Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement OpenAPI documentation (#162) #165

Merged
merged 15 commits into from
Jul 11, 2024
Merged
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
Loading