Skip to content

chore(deps): bump actions/download-artifact from 4.3.0 to 8.0.1 #69

chore(deps): bump actions/download-artifact from 4.3.0 to 8.0.1

chore(deps): bump actions/download-artifact from 4.3.0 to 8.0.1 #69

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets --all-features -- -D warnings
test:
name: Tests (${{ matrix.rust }})
runs-on: ubuntu-latest
strategy:
matrix:
include:
- rust: stable
features: --all-features
- rust: "1.81"
features: --features cli,ffi
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- run: cargo test ${{ matrix.features }}
html5lib:
name: html5lib-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Download html5lib-tests
run: ./scripts/download-html5lib-tests.sh
- name: Run tokenizer tests
run: cargo test --test html5lib_tokenizer -- --nocapture
- name: Run tree construction tests
run: cargo test --test html5lib_tree_construction -- --nocapture
doc:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo doc --all-features --no-deps
env:
RUSTDOCFLAGS: "-D warnings"