-
Notifications
You must be signed in to change notification settings - Fork 510
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
chore(test-build): support specificying rari and content branch #12432
Conversation
Bundle StatsHey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
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.
Generally, I would use the term ref
rather than branch
.
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.
LGTM, just one nit.
.github/workflows/test-build.yml
Outdated
@@ -119,9 +137,36 @@ jobs: | |||
# See https://github.com/microsoft/vscode-ripgrep#github-api-limit-note | |||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |||
|
|||
- name: Print information about build | |||
- uses: actions/checkout@v4 | |||
if: ${{ ! vars.SKIP_BUILD && github.event.inputs.rari-ref != '' }} |
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.
Nit: These !a && b != ""
conditions confused me a bit. How about:
if: ${{ ! vars.SKIP_BUILD && github.event.inputs.rari-ref != '' }} | |
if: ${{ ! vars.SKIP_BUILD || github.event.inputs.rari-ref == '' }} |
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.
I guess you missed some brackets and mean !( vars.SKIP_BUILD || github.event.input.rari-ref == '' )
I tend to find NNF more understandable, but in this case I agree a big wrapping negation makes sense and turns the if
into an unless
Builds rari if branch is given as workflow input
Tested across multiple runs of the test build: https://github.com/mdn/yari/actions/workflows/test-build.yml