Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PR comments #1460

Merged
merged 9 commits into from
Jun 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Combine coverage reports into one
blakewilson committed Jun 13, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c00c7ced7ad7ce6fb9447ea65560943ea0ded1b8
20 changes: 0 additions & 20 deletions .github/actions/run-coverage/action.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/get-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Get Coverage'
on:
pull_request:
jobs:
get_coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '16'

- run: npm ci

- run: npm run test:coverage

- run: |
mkdir coverage
cp packages/faustwp-core/coverage/coverage-final.json coverage/coverage-final-core.json
cp packages/faustwp-cli/coverage/coverage-final.json coverage/coverage-final-cli.json
jq 'reduce inputs as $i (.; . * $i)' coverage/coverage-final-*.json > coverage-merged.json

- uses: ArtiomTr/jest-coverage-report-action@v2
with:
annotations: none
skip-step: all
coverage-file: coverage/coverage-merged.json
base-coverage-file: coverage/coverage-merged.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@
"docs-legacy:install": "cd internal/legacy.faustjs.org && npm i && cd ..",
"docs-legacy:start": "npm start --prefix internal/legacy.faustjs.org",
"test": "npm run build && npm test --workspace=@faustjs/core --workspace=@faustjs/react --workspace=@faustjs/next --workspace=@faustwp/core --workspace=@faustwp/cli --workspace=@faustwp/blocks",
"test:coverage": "npm run build && npm run test:coverage --workspace=@faustjs/core --workspace=@faustjs/react --workspace=@faustjs/next",
"test:coverage": "npm run build && npm run test:coverage --workspace=@faustwp/core --workspace=@faustwp/cli --workspace=@faustwp/blocks",
"wpe-build": "exit 1",
"changeset": "changeset",
"version": "changeset version && node scripts/versionPlugin.js",