Skip to content

Merge pull request #76 from developer0hye/chore/remove-scripts-ralph #165

Merge pull request #76 from developer0hye/chore/remove-scripts-ralph

Merge pull request #76 from developer0hye/chore/remove-scripts-ralph #165

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable, "1.89"]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- run: cargo check --workspace
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install qpdf
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y qpdf
- run: cargo test --workspace
env:
OFFICE2PDF_VALIDATE_PDF: "1"
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --workspace --all-targets -- -D warnings
wasm-check:
name: WASM Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- run: cargo check --target wasm32-unknown-unknown -p office2pdf
- run: cargo check --target wasm32-unknown-unknown -p office2pdf --features wasm
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check