-
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.
* Update dependencies Also - Fix so we can run workflow manually to check if there are regressions - Make sure workflow also works for PRs from other forks
- Loading branch information
Showing
3 changed files
with
60 additions
and
25 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 |
---|---|---|
|
@@ -18,6 +18,9 @@ on: | |
branches: ['main'] | ||
pull_request: | ||
branches: ['main'] | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
lint-job: | ||
name: "Run linters" | ||
|
@@ -28,11 +31,11 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: Run Linters | ||
uses: pre-commit/[email protected].0 | ||
uses: pre-commit/[email protected].1 | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
name: Run unit tests and publish package on main | ||
name: Run unit tests and report coverage | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
|
@@ -45,10 +48,14 @@ jobs: | |
- run: npm run build | ||
- run: npm run coverage | ||
|
||
- uses: 5monkeys/cobertura-action@v13 | ||
- uses: irongut/[email protected] | ||
with: | ||
path: coverage/cobertura-coverage.xml | ||
minimum_coverage: 80 | ||
show_line: true | ||
show_branch: true | ||
fail_below_threshold: false | ||
filename: coverage/cobertura-coverage.xml | ||
badge: true | ||
format: markdown | ||
hide_complexity: true | ||
indicators: true | ||
output: both | ||
|
||
- run: | | ||
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY |
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