-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: hxtree <[email protected]>
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CodeCoverage | ||
name: Test Coverage | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -10,14 +10,15 @@ on: | |
|
||
jobs: | ||
rush-coverage: | ||
name: rush coverage | ||
name: rush test:cov | ||
timeout-minutes: 25 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code base | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ secrets.IMPACTED_BY_SHA }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
|
@@ -38,13 +39,14 @@ jobs: | |
- name: Install PNPM | ||
run: npm install --global [email protected] | ||
|
||
- name: Rush install | ||
- name: rush install | ||
run: node common/scripts/install-run-rush.js install -p | ||
|
||
- name: rush build | ||
run: node common/scripts/install-run-rush.js build | ||
|
||
- uses: neofinancial/[email protected] | ||
- name: rush test:cov | ||
uses: neofinancial/[email protected] | ||
with: | ||
db-connection-env-var: MONGO_DATABASE_URI | ||
run-command: node common/scripts/install-run-rush.js test:cov | ||
|
@@ -62,4 +64,3 @@ jobs: | |
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
coverage-reports: coverage/lcov.info | ||
|
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