fix(ci): install rustfmt explicitly and stabilize generated types #17
Workflow file for this run
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v4 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: ensure rustfmt/clippy components | |
| run: rustup component add rustfmt clippy | |
| - name: check:fmt | |
| run: mise run check:fmt | |
| - name: check:rs | |
| run: mise run check:rs | |
| - name: test:unit:rs | |
| run: mise run test:unit:rs | |
| - name: test:integration:rs | |
| run: mise run test:integration:rs | |
| - name: test:handoff:rs | |
| run: mise run test:handoff:rs | |
| - name: check:ts | |
| run: mise run check:ts | |
| - name: build:rs:release | |
| run: mise run build:rs:release | |
| - name: build:ts | |
| run: mise run build:ts | |
| - name: test:integration:ts | |
| run: mise run test:integration:ts | |
| - name: check:bench | |
| run: cargo bench --no-run | |
| - name: audit | |
| run: | | |
| cargo install cargo-audit --quiet | |
| cargo audit | |
| generate-check: | |
| name: generated files up-to-date | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v4 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: generate | |
| run: mise run generate:openapi && mise run generate:types | |
| - name: check no diff | |
| run: git diff --exit-code -- openapi/v1.json sdk/ts/src/types.ts |