-
Notifications
You must be signed in to change notification settings - Fork 23
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
playwright pr comment #8370
Merged
Merged
playwright pr comment #8370
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8850d5a
adding playwright report summary for PRs
fungairino 47a7ae7
fix name
fungairino 2b74482
test adding on pull_request trigger
fungairino 70d7971
separating out inclusiveness analyzer
fungairino 7abc200
better comment title
fungairino bae816a
only add comment if action is PR
fungairino 2c216ae
Merge branch 'main' into playwright-pr-comment
fungairino 036eec6
Always report on failure
fungairino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,6 +1,6 @@ | ||
name: CI | ||
|
||
on: push | ||
on: [push, pull_request] | ||
|
||
env: | ||
# Creates and uploads sourcemaps to Application error telemetry, and save the built extension as an artifact | ||
|
@@ -238,13 +238,8 @@ jobs: | |
name: end-to-end-tests-report${{ matrix.PUBLIC_NAME }} | ||
path: end-to-end-tests/.report | ||
retention-days: 5 | ||
# Analyzer for checking for inclusive terminology in code. For more information, see | ||
# https://github.com/microsoft/InclusivenessAnalyzer | ||
Inclusiveness-Analyser-scan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Inclusiveness Analyzer | ||
uses: microsoft/[email protected] | ||
- uses: daun/playwright-report-summary@v3 | ||
with: | ||
comment-title: "Playwright test results - MV${{matrix.MV}}" | ||
report-file: end-to-end-tests/.report/report.json | ||
report-tag: manifest-version-${{ matrix.MV }} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Inclusiveness Analyzer | ||
on: push | ||
jobs: | ||
# Analyzer for checking for inclusive terminology in code. For more information, see | ||
# https://github.com/microsoft/InclusivenessAnalyzer | ||
Inclusiveness-Analyser-scan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Inclusiveness Analyzer | ||
uses: microsoft/[email protected] |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The PR ID isn't available unless I include this pull_request trigger for the playwright summary. Though I'm a bit worried this may not work in a non-PR context
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.
This runs when we version main and when we cut release branches, neither of which are pull requests
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.
Copied convo from slack:
Eduardo
1:26 PM
Theoretically it should be fine to add the additional trigger pull_request since every kind of that event is also a push, right? Just with extra information
1:26
Though I did notice that pull_request will checkout the merged version of all the commits in the PR rather than the tip of the branch
Graham
1:27 PM
What happens when it's a push without a pull_request though?
1:28
Ex: https://github.com/pixiebrix/pixiebrix-extension/actions/runs/8837003915
Eduardo
1:29 PM
Theoretically it won't pass.
I can add a check for when not to run a step:
if: github.event_name != 'pull_request'
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.
It's not clear to me what was decided here - could you clarify @fungairino ? I do see the
github.event_name != 'pull_request'
clause below.