From 4fb4631dc9e6dd47a8b8b6cb0912b701f0c1b76a Mon Sep 17 00:00:00 2001 From: WenyXu Date: Wed, 24 Apr 2024 04:45:19 +0000 Subject: [PATCH] chore: update ci --- .github/actions/fuzz-test/action.yaml | 7 ++++++- .github/workflows/develop.yml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/actions/fuzz-test/action.yaml b/.github/actions/fuzz-test/action.yaml index b2c9b24a3c96..5dcd789c04fa 100644 --- a/.github/actions/fuzz-test/action.yaml +++ b/.github/actions/fuzz-test/action.yaml @@ -3,12 +3,17 @@ 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 + unstable: + default: 'false' + description: "enable unstable feature" 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.unstable == 'true' && '--features=unstable' || '' }} -- -max_total_time=${{ inputs.max-total-time }} diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 7788a282998c..ae2c6f541f01 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -210,6 +210,7 @@ jobs: with: target: ${{ matrix.target }} max-total-time: 120 + unstable: 'true' - name: Upload unstable fuzz test logs if: always() uses: actions/upload-artifact@v4