Merge pull request #7 from 448-engineering/use_wry_0_35 #36
This file contains 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: Rust | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt install libwebkit2gtk-4.1-dev | |
- name: Run clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Install `cargo-deny` for license checks | |
run: cargo install cargo-deny | |
- name: Run formatter | |
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check | |
- name: Build | |
run: cargo build -p puppeteer --verbose | |
- name: Run tests | |
run: cargo test -p puppeteer --verbose | |
- name: Run doc tests | |
run: cargo doc -p puppeteer --no-deps | |
- name: Run tests | |
run: cargo build --example hello-puppeteer | |
build_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install `cargo-deny` for license checks | |
run: cargo install cargo-deny | |
- name: Run formatter | |
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check | |
- name: Run clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Build | |
run: cargo build -p puppeteer --verbose | |
- name: Run tests | |
run: cargo test -p puppeteer --verbose | |
- name: Run doc tests | |
run: cargo doc -p puppeteer --no-deps | |
- name: Run tests | |
run: cargo build --example hello-puppeteer | |
build_windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install `cargo-deny` for license checks | |
run: cargo install cargo-deny | |
- name: Run formatter | |
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check | |
- name: Run clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: Build | |
run: cargo build -p puppeteer --verbose | |
- name: Run tests | |
run: cargo test -p puppeteer --verbose | |
- name: Run doc tests | |
run: cargo doc -p puppeteer --no-deps | |
- name: Run tests | |
run: cargo build --example hello-puppeteer |