Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]

env:
CARGO_TERM_COLOR: always

jobs:
formatting:
name: Formatting
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --check

clippy:
name: Clippy
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
# only save the cache on the main branch
# https://github.com/Swatinem/rust-cache/issues/95
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: cargo clippy -- -D warnings

typos:
name: Typos
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected]
2 changes: 1 addition & 1 deletion src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ impl Operation {
let r#type = match FieldType::from_openapi(parameter_data.format) {
Ok(t) => t,
Err(e) => {
tracing::warn!("unsupport query parameter type: {e}");
tracing::warn!("unsupported query parameter type: {e}");
return None;
}
};
Expand Down