-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: vitest gh actions doesn't throw error (#2170)
- Loading branch information
1 parent
1952907
commit 5550dc7
Showing
11 changed files
with
234 additions
and
82 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 |
---|---|---|
|
@@ -66,6 +66,7 @@ jobs: | |
|
||
test: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -77,27 +78,22 @@ jobs: | |
cache-dependency-path: 'package-lock.json' | ||
- name: install | ||
run: npm ci | ||
- name: test | ||
id: test | ||
- name: build | ||
run: npm run build | ||
env: | ||
NEXT_PUBLIC_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_PROJECT_ID }} | ||
- name: Test | ||
run: npm run test | ||
- name: summary | ||
id: summary | ||
run: echo "COVERAGE_SUMMARY=$(npm run coverage:summary | tail -n 1)" >> "$GITHUB_OUTPUT" | ||
- uses: LouisBrunner/[email protected] | ||
- name: Merge Coverage Reports | ||
if: always() | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: coverage | ||
conclusion: ${{ job.status }} | ||
output: | | ||
{"summary":"${{ steps.summary.outputs.COVERAGE_SUMMARY }}"} | ||
- uses: actions/upload-artifact@v4 | ||
run: npm run coverage:merge | ||
- name: Report | ||
if: always() | ||
uses: davelosert/vitest-coverage-report-action@v2 | ||
with: | ||
name: coverage | ||
path: | | ||
packages/core/coverage/ | ||
packages/common/coverage/ | ||
name: Coverage | ||
json-final-path: ./coverage/coverage-merged-final.json | ||
json-summary-path: ./coverage/coverage-merged-summary.json | ||
|
||
ui-test: | ||
uses: ./.github/workflows/ui_tests.yml | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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
Oops, something went wrong.