Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cunla/skills-test-with-actions
My clone repository
https://github.com/cunla/skills-test-with-actions
Last synced: 13 days ago
JSON representation
My clone repository
- Host: GitHub
- URL: https://github.com/cunla/skills-test-with-actions
- Owner: cunla
- License: mit
- Created: 2023-10-10T17:35:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-01T05:41:48.000Z (11 months ago)
- Last Synced: 2024-05-02T00:02:12.775Z (7 months ago)
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Test with Actions
_Create workflows that enable you to use Continuous Integration (CI) for your projects._
## Step 4: Add branch protections
_Great job uploading test reports! :partying_face:_
Take a look at the merge box, you'll notice you can merge this even though the review process hasn't been met.
Protected branches ensure that collaborators on your repository cannot make irrevocable changes to branches. Enabling protected branches also allows you to enable other optional checks and requirements, like required status checks and required reviews.
### :keyboard: Activity: Add branch protections
1. Go to **Branches** settings. You can navigate to that page manually by clicking on the right-most tab in the top of the repository called **Settings** and then clicking on **Branches**.
1. Click on **Add rule** under "Branch protection rules".
1. Type `main` in **Branch name pattern**.
1. Check **Require a pull request before merging**.
1. Check **Require status checks to pass before merging**.
1. Check all build and test jobs that you'd like to see in the newly visible gray box.
1. Click **Create**.
1. _Once you turn on branch protection, Actions can no longer push directly to `main`. You'll need to open the next step on your own._---
Get help: [Post in our discussion board](https://github.com/orgs/skills/discussions/categories/test-with-actions) • [Review the GitHub status page](https://www.githubstatus.com/)
© 2023 GitHub • [Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md) • [MIT License](https://gh.io/mit)