Skip to content

Fix code coverage #1034

Fix code coverage

Fix code coverage #1034

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Setup yt-dlp PPA
run: sudo add-apt-repository ppa:tomtomtom/yt-dlp
- name: Install yt-dlp
run: sudo apt update && sudo apt install -y yt-dlp
- name: Run cargo test
run: cargo test --release
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
submodules: true
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Install extra components
run: rustup component add clippy rust-docs rustfmt
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy -- -D warnings
- name: Run rustdoc lints
env:
RUSTDOCFLAGS: "-D missing_docs -D rustdoc::missing_doc_code_examples"
run: cargo doc --workspace --all-features --no-deps --document-private-items