feat(security): add dispatch rate limits and ws reconnect guard #45
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 | |
| - "feat/**" | |
| - "fix/**" | |
| - "docs/**" | |
| - "chore/**" | |
| pull_request: | |
| jobs: | |
| rust: | |
| name: Rust Check | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: rust | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| rust/target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('rust/Cargo.lock') }} | |
| - name: Cargo check | |
| run: cargo check | |
| - name: Cargo test | |
| run: cargo test | |
| typescript: | |
| name: TypeScript Build | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: typescript | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| cache-dependency-path: typescript/pnpm-lock.yaml | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Build workspace | |
| run: pnpm -r build | |
| - name: Test workspace | |
| run: pnpm -r test |