Skip to content

Commit

Permalink
ci: fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Miquel Sabaté Solà <[email protected]>
  • Loading branch information
mssola committed Oct 9, 2024
1 parent 02b6282 commit 55f5360
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,27 @@ jobs:
- uses: actions/checkout@v4

- name: Run tests
run: cargo test
run: cargo test --verbose

- name: Run Clippy
run: cargo clippy --all-targets --all-features

fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update rust toolchain to nightly
run: |
rustup update nightly
rustup default nightly
- name: Install cargo fuzz
run: cargo install cargo-fuzz

- name: Build with nightly
run: cargo build --verbose

- name: Fuzzy testing
run: |
cd lib/xixanta
Expand Down
2 changes: 1 addition & 1 deletion lib/xixanta/fuzz/fuzz_targets/fuzz_target_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
use libfuzzer_sys::fuzz_target;

fuzz_target!(|data: &[u8]| {
let mut parser = xixanta::parser::Parser::new();
let mut parser = xixanta::parser::Parser::default();
let _ = parser.parse(data);
});

0 comments on commit 55f5360

Please sign in to comment.