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: add github action to run test suit #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bluebrown
Copy link
Contributor

@bluebrown bluebrown commented Jun 9, 2023

I have added a GitHub action to run the tests. This can be used to protect the main and releases branches on pull requests.

Due to the way GitHub actions work, you may need to do some "hacks" to have that pipeline run 1 time, before it is selectable via branch protection.
The way I did that was settings the on condition to push (and nothing else). I guess one could make a dummy branch and push to that just to get it working.
Once that ran one time, the actual on conditions can be specified. For example, using the ones in this PR.

on:
  push: 

There is probably a better way.

@bluebrown
Copy link
Contributor Author

bluebrown commented Jun 9, 2023

Here is an example of branch protection integration on my fork. I have used a dummy main branch to make the pr against, and enabled branch protection for that branch. bluebrown#3

settings page showing branch protection rules

Signed-off-by: Nico Braun <rainbowstack@gmail.com>
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.

1 participant