Skip to content

Add an eighth check: bot-protection/CAPTCHA detection #8

Add an eighth check: bot-protection/CAPTCHA detection

Add an eighth check: bot-protection/CAPTCHA detection #8

Workflow file for this run

name: ci
on:
push:
branches: [master]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- run: cargo fmt --check
- run: cargo clippy --all-targets -- -D warnings
- run: cargo test
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rustsec/audit-check@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Build-only on macOS/Windows: catches platform-specific compile breaks
# (chromiumoxide/tokio have per-OS cfg'd bits) without spending CI time
# on a headless-Chrome download in every job — the unit tests are pure
# logic and only need to run once, on Linux.
build:
strategy:
matrix:
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build