headless_chrome 1.0.21

Control Chrome programmatically
Documentation
name: CI

on:
  push:
  pull_request:

permissions:
  contents: read

env:
  RUSTFLAGS: -Dwarnings # Turn warnings into errors
  RUST_CI: true

jobs:
  check:
    name: "ubuntu: cargo clippy && cargo fmt && cargo test"
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v3
      - uses: dtolnay/rust-toolchain@master
        with:
          toolchain: stable
      - run: cargo fmt --all -- --check
      - run: cargo test google.com --all-features --all-targets
      - run: cargo clippy --all-features --all-targets

  check-win:
    name: "win: cargo clippy && cargo test"
    runs-on: windows-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v3
      - uses: dtolnay/rust-toolchain@master
        with:
          toolchain: stable
      - run: cargo test google.com --all-features --all-targets
      - run: cargo clippy --all-features --all-targets

  check-macos:
    name: "macos: cargo clippy && cargo test"
    runs-on: macos-latest
    timeout-minutes: 20
    steps:
      - uses: actions/checkout@v3
      - uses: dtolnay/rust-toolchain@master
        with:
          toolchain: stable
      - run: cargo test google.com --all-features --all-targets
      - run: cargo clippy --all-features --all-targets