-
Notifications
You must be signed in to change notification settings - Fork 153
test: branch coverage comment on PR #1035
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
base: develop
Are you sure you want to change the base?
Changes from all commits
955ac75
8a4b7ff
3a8bb0f
4aa58ad
e3c4898
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,38 @@ | ||||||||||||||||
| name: Test Coverage | ||||||||||||||||
|
|
||||||||||||||||
| on: | ||||||||||||||||
| pull_request: | ||||||||||||||||
| branches: [ main, master, develop ] | ||||||||||||||||
|
|
||||||||||||||||
|
Comment on lines
+3
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Add manual trigger with on:
pull_request:
branches: [main, master, develop]
+ workflow_dispatch:📝 Committable suggestion
Suggested change
🧰 Tools🪛 YAMLlint (1.35.1)[warning] 3-3: truthy value should be one of [false, true] (truthy) [error] 5-5: too many spaces inside brackets (brackets) [error] 5-5: too many spaces inside brackets (brackets) |
||||||||||||||||
| jobs: | ||||||||||||||||
| coverage: | ||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||
| permissions: | ||||||||||||||||
| contents: read | ||||||||||||||||
| pull-requests: write | ||||||||||||||||
| steps: | ||||||||||||||||
| - uses: actions/checkout@v3 | ||||||||||||||||
|
|
||||||||||||||||
| - name: Install pnpm | ||||||||||||||||
| uses: pnpm/action-setup@v2 | ||||||||||||||||
| with: | ||||||||||||||||
| version: 8 | ||||||||||||||||
| run_install: false | ||||||||||||||||
|
|
||||||||||||||||
| - name: Setup Node.js | ||||||||||||||||
| uses: actions/setup-node@v3 | ||||||||||||||||
| with: | ||||||||||||||||
| node-version: 18 | ||||||||||||||||
| cache: 'pnpm' | ||||||||||||||||
|
|
||||||||||||||||
| - name: Install dependencies | ||||||||||||||||
| run: pnpm install | ||||||||||||||||
|
|
||||||||||||||||
| - name: Run tests with coverage | ||||||||||||||||
| run: pnpm run test:coverage || true | ||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Use - - name: Run tests with coverage
- run: pnpm run test:coverage || true
+ - name: Run tests with coverage
+ continue-on-error: true
+ run: pnpm run test:coverage📝 Committable suggestion
Suggested change
|
||||||||||||||||
|
|
||||||||||||||||
| - name: Post coverage comment | ||||||||||||||||
| uses: romeovs/[email protected] | ||||||||||||||||
| with: | ||||||||||||||||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||
| lcov-file: ./coverage/lcov.info | ||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -54,3 +54,5 @@ Specify what it takes to deploy your app. | |||
| - Development Browser Extensions | ||||
| - [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi) | ||||
| - [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/) | ||||
|
|
||||
| # testing commit | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Remove testing commit message from README This appears to be a temporary testing note that should not be committed to the final version. Additionally, it creates a second top-level heading and has trailing spaces, both of which are Markdown lint issues. -# testing commit 📝 Committable suggestion
Suggested change
🧰 Tools🪛 markdownlint-cli2 (0.17.2)58-58: Trailing spaces (MD009, no-trailing-spaces) 58-58: Multiple top-level headings in the same document (MD025, single-title, single-h1) |
||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix YAML list formatting to comply with lint rules
The
branches: [ main, master, develop ]syntax triggers YAML lint errors due to extra spaces inside the brackets. Updating it to[main, master, develop]will resolve the issue.📝 Committable suggestion
🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 5-5: too many spaces inside brackets
(brackets)
[error] 5-5: too many spaces inside brackets
(brackets)