Skip to content

ci: test all parsers #56

ci: test all parsers

ci: test all parsers #56

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
strace-parser: [combinator, peg, regex]
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: cargo build --no-default-features --features strace-parser-${{matrix.strace-parser}} --verbose
test:
runs-on: ubuntu-latest
strategy:
matrix:
strace-parser: [combinator, peg, regex]
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: cargo test --bins --no-default-features --features strace-parser-${{matrix.strace-parser}} --verbose
clippy:
runs-on: ubuntu-latest
strategy:
matrix:
strace-parser: [combinator, peg, regex]
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- run: cargo clippy --no-default-features --features strace-parser-${{matrix.strace-parser}} -- -D warnings
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- run: cargo fmt --all -- --check