[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Add GitHub Action for PR's #87

Open
AObuchow opened this issue Jun 24, 2020 · 15 comments
Open

Add GitHub Action for PR's #87

AObuchow opened this issue Jun 24, 2020 · 15 comments
Assignees
Labels

Comments

@AObuchow
Copy link
Owner

As discussed here, it'd be nice to have some CI for pull requests.

@AObuchow
Copy link
Owner Author

@ingomohr I'm not sure why I'm currently unable to assign you to this issue. Maybe try commenting on it?

@ingomohr
Copy link
Contributor

@ingomohr I'm not sure why I'm currently unable to assign you to this issue. Maybe try commenting on it?

I've read that you can assign to non-collaborators once they've posted a comment to an issue - so, maybe this one helps. :)

@AObuchow
Copy link
Owner Author

@ingomohr there we go ;)

@ingomohr
Copy link
Contributor
ingomohr commented Jun 24, 2020

@ingomohr there we go ;)

Nice. Didn't know that restriction, either. I thought (at first) you could only assign to collaborators - but this is nice. :)

@AObuchow
Copy link
Owner Author

@ingomohr now that #90 is merged, do you think I can close this? Or do you want me to leave it open in the event you come up with a way to use a GitHub workflow for PR's directly?

@ingomohr
Copy link
Contributor

@ingomohr now that #90 is merged, do you think I can close this? Or do you want me to leave it open in the event you come up with a way to use a GitHub workflow for PR's directly?

Hm, maybe we can leave it open just now. Maybe there's a way to solve this, after all.

@ingomohr
Copy link
Contributor

But I'd be fine w/ closing, as well.

@AObuchow
Copy link
Owner Author

@ingomohr let's leave it open then :)

@AObuchow
Copy link
Owner Author

@ingomohr I just created a new branch and unfortunately no new update site branch was created. Maybe it has to due with the way I named the branch? https://github.com/AObuchow/Eclipse-Spectrum-Theme/blob/master/.github/workflows/build-updatesite-branches.yml#L9

@ingomohr
Copy link
Contributor
ingomohr commented Jun 28, 2020

@ingomohr I just created a new branch and unfortunately no new update site branch was created. Maybe it has to due with the way I named the branch? https://github.com/AObuchow/Eclipse-Spectrum-Theme/blob/master/.github/workflows/build-updatesite-branches.yml#L9

@AObuchow Sorry to hear the workflow didn‘t seem to have been triggered. Did you push something to that branch? The name should not matter. For my tests I created a new branch on my machine and pushed a new commit. I‘ll be checking your branch right after breakfast.

@ingomohr
Copy link
Contributor
ingomohr commented Jun 28, 2020

@AObuchow The „experimental“ branch has the same HEAD commit as the „master“ has. So, I think we could fix this by adding a new trigger for the workflow. There should be something like „branch created“. I‘ll create a PR for you. 😊

@AObuchow
Copy link
Owner Author

Ahhh okay thank you for the explanation. Sure that’d be great :)

@ingomohr
Copy link
Contributor

Ok, here's a small update. It's possible to run the workflow when a branch has been created. - And it should be possible to add that trigger to the workflow. However, it's refused to work until now. But I'm sure I'll conquer that eventually. ;)
I'll check on it later today.

@AObuchow AObuchow added the build label Jul 1, 2020
@ingomohr
Copy link
Contributor

Some info seems to be missing. @AObuchow discussed some things via DM on Twitter.

Here's the update:

  • Updatesites are built automatically for every branch including master, now.
  • PR-updatesites are not built - and here is why:
    • The Github user who creates the PR usually doesn't have write access to the repo on which they create the PR
    • The PR cannot be built on the fork-repo either, because the PR belongs to the target repo.

Maybe we can make the PR-build on the target repo to use the user who owns the repo.
I'll check on that.

@ingomohr
Copy link
Contributor

The PR build workflow should also merge the dev branch into the target branch (locally repo on the build machine, of course :) ) to check that...

  • a) ... the PR can be merged w/o conflicts and
  • b) ... the change won't break the target branch

The latter might not be as important right now for this repo; but p2 projects typically have tests, and a CI job (i.e. our workflow) should tell us the CI results for the target branch as it would behave after the merge of the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants