From 0e2799ab5f71453aa0d3f82c5f1f5b1abb4d5205 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..ecb56584cb64 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