-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove code coverage github actions. Use xvfb for display.
- Loading branch information
Showing
2 changed files
with
10 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,33 +13,12 @@ jobs: | |
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- uses: pyvista/setup-headless-display-action@v1 | ||
- run: sudo apt-get install xvfb | ||
- run: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & export DISPLAY=:99 | ||
- run: npm install | ||
- run: npm run compile | ||
- run: npm run test-coverage | ||
|
||
- name: Copy Coverage To Predictable Location | ||
run: cp coverage/cobertura-coverage.xml coverage.cobertura.xml | ||
|
||
- name: Code Coverage Summary Report | ||
uses: irongut/[email protected] | ||
with: | ||
filename: coverage.cobertura.xml | ||
badge: true | ||
fail_below_min: true | ||
format: markdown | ||
hide_branch_rate: false | ||
hide_complexity: true | ||
indicators: true | ||
output: both | ||
thresholds: '60 80' | ||
|
||
- name: Add Coverage PR Comment | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md | ||
- run: npm run test | ||
- run: killall Xvfb || true | ||
run-tests-win: | ||
runs-on: windows-latest | ||
strategy: | ||
|
@@ -51,7 +30,8 @@ jobs: | |
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- uses: pyvista/setup-headless-display-action@v1 | ||
- run: choco install xvfb | ||
- run: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & set DISPLAY=:99 | ||
- run: npm install | ||
- run: npm run compile | ||
- run: npm run test-coverage | ||
- run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters