Test multiple code coverage pages
This commit is contained in:
21
.github/workflows/regression_template.yml
vendored
21
.github/workflows/regression_template.yml
vendored
@@ -79,11 +79,6 @@ jobs:
|
|||||||
- name: Configure GitHub Pages
|
- name: Configure GitHub Pages
|
||||||
uses: actions/configure-pages@v3.0.6
|
uses: actions/configure-pages@v3.0.6
|
||||||
|
|
||||||
- name: Upload GitHub Pages artifact
|
|
||||||
uses: actions/upload-pages-artifact@v2.0.0
|
|
||||||
with:
|
|
||||||
path: ${{ inputs.cmake_path }}/coverage_report/default_build_coverage
|
|
||||||
|
|
||||||
- name: Generate Code Coverage Results Summary
|
- name: Generate Code Coverage Results Summary
|
||||||
uses: irongut/CodeCoverageSummary@v1.3.0
|
uses: irongut/CodeCoverageSummary@v1.3.0
|
||||||
with:
|
with:
|
||||||
@@ -116,13 +111,25 @@ jobs:
|
|||||||
header: Code Coverage ${{ inputs.result_affix }}
|
header: Code Coverage ${{ inputs.result_affix }}
|
||||||
path: code-coverage-results.md
|
path: code-coverage-results.md
|
||||||
|
|
||||||
|
- name: Prepare GitHub Pages
|
||||||
|
run: >-
|
||||||
|
if [ "${{ inputs.deploy_url_affix }}" != "" ]; then
|
||||||
|
mv ${{ inputs.cmake_path }}/coverage_report/default_build_coverage \
|
||||||
|
${{ inputs.cmake_path }}/coverage_report/default_build_coverage${{ inputs.deploy_url_affix }}
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Upload GitHub Pages artifact
|
||||||
|
uses: actions/upload-pages-artifact@v2.0.0
|
||||||
|
with:
|
||||||
|
path: ${{ inputs.cmake_path }}/coverage_report
|
||||||
|
|
||||||
deploy_code_coverage:
|
deploy_code_coverage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
needs: run_tests
|
needs: run_tests
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}${{ inputs.deploy_url_affix }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
permissions:
|
permissions:
|
||||||
pages: write
|
pages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
@@ -134,4 +141,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Write Code Coverage Report URL
|
- name: Write Code Coverage Report URL
|
||||||
run: |
|
run: |
|
||||||
echo '[Open Coverage Report](${{ steps.deployment.outputs.page_url }}${{ inputs.deploy_url_affix }})' >> $GITHUB_STEP_SUMMARY
|
echo '[Open Coverage Report](${{ steps.deployment.outputs.page_url }}/default_build_coverage${{ inputs.deploy_url_affix }})' >> $GITHUB_STEP_SUMMARY
|
||||||
4
.github/workflows/regression_test.yml
vendored
4
.github/workflows/regression_test.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
build_script: ./scripts/build_tx.sh
|
build_script: ./scripts/build_tx.sh
|
||||||
test_script: ./scripts/test_tx.sh
|
test_script: ./scripts/test_tx.sh
|
||||||
cmake_path: ./test/tx/cmake
|
cmake_path: ./test/tx/cmake
|
||||||
deploy_url_affix: tx/
|
deploy_url_affix: _tx/
|
||||||
result_affix: ThreadX
|
result_affix: ThreadX
|
||||||
tx_smp:
|
tx_smp:
|
||||||
uses: ./.github/workflows/regression_template.yml
|
uses: ./.github/workflows/regression_template.yml
|
||||||
@@ -25,5 +25,5 @@ jobs:
|
|||||||
build_script: ./scripts/build_smp.sh
|
build_script: ./scripts/build_smp.sh
|
||||||
test_script: ./scripts/test_smp.sh
|
test_script: ./scripts/test_smp.sh
|
||||||
cmake_path: ./test/smp/cmake
|
cmake_path: ./test/smp/cmake
|
||||||
deploy_url_affix: smp/
|
deploy_url_affix: _smp/
|
||||||
result_affix: SMP
|
result_affix: SMP
|
||||||
Reference in New Issue
Block a user