Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Apr 24, 2024
1 parent 22c1bf8 commit ff73859
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/fuzz-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ description: 'Fuzz test given setup and service'
inputs:
target:
description: "The fuzz target to test"
required: true
max-total-time:
description: "Max total time(secs)"
required: true
features:
description: "Build artifacts with given Cargo feature enabled"
runs:
using: composite
steps:
- name: Run Fuzz Test
shell: bash
run: cargo fuzz run ${{ inputs.target }} --fuzz-dir tests-fuzz -D -s none -- -max_total_time=${{ inputs.max-total-time }}
run: cargo fuzz run ${{ inputs.target }} --fuzz-dir tests-fuzz -D -s none ${{ inputs.features && --features=${{inputs.features}} }} -- -max_total_time=${{ inputs.max-total-time }}

1 change: 1 addition & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ jobs:
with:
target: ${{ matrix.target }}
max-total-time: 120
features: "unstable"
- name: Upload unstable fuzz test logs
if: always()
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit ff73859

Please sign in to comment.