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

ci(actions): fix for build not triggering on forked pull request #448

Merged
merged 2 commits into from Sep 5, 2019

Conversation

bpas247
Copy link
Member

@bpas247 bpas247 commented Sep 4, 2019

Currently, the build is only being triggered whenever there is
a push to the repository.

This does not lead to a build being triggered whenever there is a
push to a branch on a forked repo.

This fix allows it to trigger on every push or every pull
request.

We'll probably need to also fix the configuration on the
React-Bootstrap repo.

Currently, the build is only being triggered whenever there is
a push to the repository.

This does not lead to a build being triggered whenever there is a
push to a branch on a forked repo.

This fix allows it to trigger on every push *or* every pull
request.

We'll probably need to also fix the configuration on the
React-Bootstrap repo.
@bpas247 bpas247 added the bug label Sep 4, 2019
@bpas247
Copy link
Member Author

bpas247 commented Sep 4, 2019

Eh, Idk if I like this setup either. Maybe we can separate the pull request job into its own workflow, with a more simple setup for quick testing? Then we can have the push job to be more comprehensive.

@taion
Copy link
Member

taion commented Sep 4, 2019

Does this work roughly like the setup for Travis?

Ideally we'd only want to automatically run tests on PRs to master, maybe.

@bpas247
Copy link
Member Author

bpas247 commented Sep 4, 2019

Does this work roughly like the setup for Travis?

Yep, it's essentially the same AFAIK 👍

Ideally we'd only want to automatically run tests on PRs to master, maybe.

Yeah that's true, I agree.

@bpas247 bpas247 requested a review from taion September 5, 2019 16:26
Copy link
Member

@taion taion left a comment

Choose a reason for hiding this comment

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

i'd consider removing push. either way

@bpas247
Copy link
Member Author

bpas247 commented Sep 5, 2019

i'd consider removing push. either way

hmm, don't we still want our CI builds to trigger when there is a push to master though?

@taion
Copy link
Member

taion commented Sep 5, 2019

ah ok, my bad

i was thinking the right setup would be pushes and PRs to master, but not pushes to other branches (unless there's a PR to master open)

@bpas247
Copy link
Member Author

bpas247 commented Sep 5, 2019

i was thinking the right setup would be pushes and PRs to master, but not pushes to other branches (unless there's a PR to master open)

I think I might be able to set this up in a map event configuration actually, I'll tinker with it and see what I can come up with 👌

@bpas247
Copy link
Member Author

bpas247 commented Sep 5, 2019

@taion do you mind checking this configuration? I just wanted to confirm that this is what you were thinking

@bpas247 bpas247 merged commit 7001789 into master Sep 5, 2019
@bpas247 bpas247 deleted the ci/fix-test-build-not-triggering branch September 5, 2019 16:46
@bpas247 bpas247 mentioned this pull request Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants