Skip to content

Replace debug assert with Result #263

Replace debug assert with Result

Replace debug assert with Result #263

Workflow file for this run

name: CI
on:
push:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.continue-on-error || false }}
strategy:
matrix:
name:
- stable
- beta
- nightly
- "feat: no default features"
- "feat: all features"
- "feat: nom only"
include:
- name: beta
rust: beta
- name: nightly
rust: nightly
continue-on-error: true
- name: "feat: all features"
features: "--all-features"
- name: "feat: nom only"
features: "--no-default-features --features nom_parser"
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust || 'stable' }}
- name: Build
run: cargo build --verbose ${{ matrix.features }}
- name: Run tests
run: cargo test --verbose ${{ matrix.features }} -- --test-threads=1
pdfutil:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
- name: Build
run: cargo build --verbose --manifest-path pdfutil/Cargo.toml
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
- name: clippy for lopdf
run: cargo clippy
- name: clippy for pdfutil
run: cargo clippy --manifest-path pdfutil/Cargo.toml