perf(camoufox): tune fetcher for 30+ req/min target #37
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 | |
| RUSTFLAGS: "-D warnings" | |
| jobs: | |
| fmt: | |
| name: rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "1.95" | |
| components: rustfmt | |
| - run: cargo fmt --all -- --check | |
| clippy: | |
| name: clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "1.95" | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: | | |
| cargo clippy --workspace --all-targets --all-features -- \ | |
| -D warnings \ | |
| -D clippy::unwrap_used \ | |
| -D clippy::expect_used \ | |
| -D clippy::panic \ | |
| -D clippy::dbg_macro \ | |
| -D clippy::todo \ | |
| -D clippy::unimplemented | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "1.95" | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo test --workspace --all-features --no-fail-fast | |
| loc: | |
| name: loc-200 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: bash scripts/check_loc_workspace.sh | |
| forbidden: | |
| name: forbidden-patterns | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install ripgrep | |
| run: sudo apt-get update && sudo apt-get install -y ripgrep | |
| - name: Scan workspace for println/unwrap outside allowed crates | |
| run: | | |
| mapfile -t files < <(find . -type f -name '*.rs' -not -path './target/*' -not -path './px-research/*') | |
| if [ ${#files[@]} -gt 0 ]; then | |
| bash scripts/check_forbidden.sh "${files[@]}" | |
| fi | |
| audit: | |
| name: cargo-audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "1.95" | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo install --locked cargo-audit | |
| - run: cargo audit --deny warnings |