mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-12 15:37:27 +01:00
Try to fix coverage report merge.
This commit is contained in:
@@ -220,7 +220,7 @@ jobs:
|
|||||||
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers=3
|
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers=3
|
||||||
- name: "Generate code coverage report for shard ${{ matrix['shardIndex'] }}"
|
- name: "Generate code coverage report for shard ${{ matrix['shardIndex'] }}"
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
run: npx nyc report --reporter=html --reporter=text --report-dir=coverage/shard-${{ matrix.shardIndex }}
|
run: npx nyc report --reporter=html --reporter=text --reporter=lcov --report-dir=coverage/shard-${{ matrix.shardIndex }}
|
||||||
- name: Upload blob report to GitHub Actions Artifacts
|
- name: Upload blob report to GitHub Actions Artifacts
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -235,13 +235,6 @@ jobs:
|
|||||||
name: coverage-report-${{ matrix.shardIndex }}
|
name: coverage-report-${{ matrix.shardIndex }}
|
||||||
path: coverage/shard-${{ matrix.shardIndex }}
|
path: coverage/shard-${{ matrix.shardIndex }}
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
- name: Upload raw coverage data for merging
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: nyc-output-${{ matrix.shardIndex }}
|
|
||||||
path: .nyc_output
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
merge-coverage-reports:
|
merge-coverage-reports:
|
||||||
name: "Merge Coverage Reports"
|
name: "Merge Coverage Reports"
|
||||||
@@ -259,19 +252,15 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: all-coverage
|
path: all-coverage
|
||||||
pattern: nyc-output-*
|
pattern: coverage-report-*
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
- name: Move coverage files into .nyc_output
|
|
||||||
run: |
|
|
||||||
mkdir -p .nyc_output
|
|
||||||
cp all-coverage/*.json .nyc_output/
|
|
||||||
- name: Generate merged coverage report
|
- name: Generate merged coverage report
|
||||||
run: npx nyc report --reporter=html --reporter=text --reporter=lcov --report-dir=coverage-e2e
|
run: npx nyc merge all-coverage coverage.json
|
||||||
- name: Upload merged coverage report
|
- name: Upload merged coverage report
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: merged-coverage-report--attempt-${{ github.run_attempt }}
|
name: merged-coverage-report--attempt-${{ github.run_attempt }}
|
||||||
path: coverage-e2e
|
path: all-coverage
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
merge-playwright-reports:
|
merge-playwright-reports:
|
||||||
|
|||||||
Reference in New Issue
Block a user