Skip to content
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: split ci into separate steps #292

Merged
merged 8 commits into from
May 15, 2021
Merged

chore: split ci into separate steps #292

merged 8 commits into from
May 15, 2021

Conversation

as-herzog
Copy link
Contributor

@as-herzog as-herzog commented May 14, 2021

Description

Splits up the Build step to have separate steps for unit test,integration test, and build for easier debugging. Also skips duplicate runs of each step due to our on push and on pull_request settings.

Before:
Screen Shot 2021-05-14 at 3 42 37 PM

After:
Screen Shot 2021-05-14 at 4 00 10 PM

Reference

https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012

@as-herzog
Copy link
Contributor Author

I see that we only run Snyk on pull requests right now, do we need to run the others on push or could we just run all of them on PR?

@as-herzog as-herzog marked this pull request as ready for review May 14, 2021 22:05
@as-herzog as-herzog requested a review from a team May 14, 2021 22:05
runs-on: ubuntu-latest
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
Copy link
Contributor

Choose a reason for hiding this comment

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

💪

Comment on lines +10 to +12
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we also avoid running this for external PRs? I guess what's our full intent?

Copy link
Contributor

@cyx cyx left a comment

Choose a reason for hiding this comment

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

Just have a question re: releasing for external PRs

@cyx cyx merged commit cb3a6d4 into main May 15, 2021
@cyx cyx deleted the breakup-ci-steps branch May 15, 2021 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants