Skip to content

chore: run builds on pull requests #2866

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

Merged
merged 1 commit into from
Mar 12, 2021
Merged

chore: run builds on pull requests #2866

merged 1 commit into from
Mar 12, 2021

Conversation

jawnsy
Copy link
Contributor

@jawnsy jawnsy commented Mar 12, 2021

  • Run builds when changes are pushed to the main branch, or for pull
    requests opened against the main branch. This is a subtle change
    in behavior because, previously, builds would've run on pushes to
    any branch, regardless if a pull request is open yet.
  • Update to GitHub actions/checkout v2, which performs a shallow
    clone by default, which should speed up the build.

Closes: #2559 (:crossed_fingers:)

--

I believe that this should work, since only one job receives secrets according to the workflow definition (unless there's an administrative setting somewhere for global secrets passed using environment variables). However, I think the only way to be certain is to merge this and then open a pull request from a fork. If this breaks things or doesn't work correctly, we can always revert and try again.

* Run builds when changes are pushed to the main branch, or for pull
  requests opened against the main branch. This is a subtle change
  in behavior because, previously, builds would've run on pushes to
  any branch, regardless if a pull request is open yet.
* Update to GitHub actions/checkout v2, which performs a shallow
  clone by default, which should speed up the build.
@jawnsy jawnsy self-assigned this Mar 12, 2021
@jawnsy jawnsy requested review from code-asher and jsjoeio March 12, 2021 01:24
@jawnsy jawnsy marked this pull request as ready for review March 12, 2021 01:25
@jawnsy jawnsy requested a review from a team as a code owner March 12, 2021 01:25
@jawnsy jawnsy removed request for jsjoeio and code-asher March 12, 2021 01:25
@jsjoeio jsjoeio added this to the v3.9.2 milestone Mar 12, 2021
Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @jawnsy 🎉 Thanks for the detailed PR description too!

Feel free to merge whenever you want!

@jawnsy jawnsy merged commit c270570 into main Mar 12, 2021
@jawnsy jawnsy deleted the update-build branch March 12, 2021 17:48
@jsjoeio jsjoeio added the chore Related to maintenance or clean up label May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Related to maintenance or clean up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make CI work on forks
3 participants