Skip to content

Commit

Permalink
Update regression_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaocq2001 authored Nov 25, 2023
1 parent 094c75e commit cfa0e2d
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/regression_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,30 @@ on:
jobs:
# This workflow contains a single job called "linux_job"
run_tests:
runs-on: ubuntu-lates
permissions:
contents: read
issues: read
checks: write
pull-requests: write
pages: write
id-token: write
uses: xiaocq2001/threadx/.github/workflows/regression_template.yml@chxiao/test_workflow
with:
cmake_path: ./test/cmake/usbx
build_script: ./scripts/build.sh ${{ inputs.tests_to_run }}
test_script: ./scripts/test.sh ${{ inputs.tests_to_run }}
coverage_name: ${{ inputs.tests_to_run }}

steps:

- name: Decide Coverage Name
run: |
if [[ "${{ inputs.tests_to_run }}" == *"_coverage" ]]; then
echo "skip_coverage=default_build_coverage" >> $GITHUB_ENV
else
echo "skip_coverage=${{ inputs.coverage_name }}" >> $GITHUB_ENV
fi
- name: Run test template
uses: xiaocq2001/threadx/.github/workflows/regression_template.yml@chxiao/test_workflow
with:
cmake_path: ./test/cmake/usbx
build_script: ./scripts/build.sh ${{ inputs.tests_to_run }}
test_script: ./scripts/test.sh ${{ inputs.tests_to_run }}
coverage_name: ${{ inputs.tests_to_run }}

0 comments on commit cfa0e2d

Please sign in to comment.