Skip to content

Commit

Permalink
CI: Add fuzzing
Browse files Browse the repository at this point in the history
Run fuzzing on PR.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu committed Feb 19, 2024
1 parent bc3b669 commit 1fe89bc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,30 @@ jobs:

- run: cargo clippy --no-deps

fuzz:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- run: rustup toolchain install nightly --profile minimal --no-self-update

- uses: taiki-e/install-action@v2
with:
tool: cargo-fuzz

- uses: Swatinem/rust-cache@v2

- run: |
cargo +nightly fuzz run parser --careful --jobs $(nproc) -- -max_total_time=60
# Dummy job to have a stable name for the "all tests pass" requirement
tests-pass:
name: Tests pass
needs:
- test
- lint
- fuzz
if: always() # always run even if dependencies fail
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 1fe89bc

Please sign in to comment.