Configure the build#3
Conversation
Step 4: Add validationBuild your site. ⌨️ Activity: Add some automated validation to your project
bundle exec jekyll build
You can do this by editing the file from the Files changed tab, or by scrolling down and accepting the suggested change. I'll respond below with your next step. |
Co-authored-by: github-learning-lab[bot] <37936606+github-learning-lab[bot]@users.noreply.github.com>
|
Now that you've added some validation tests to your CI build, it's time to turn on some branch protections. Protected branches ensure that collaborators cannot make irrevocable changes to specific branches. This also allows you to enable CI required status checks to pass before merging. Why use protected branches?Protected branches allow contributors to create branches and pull requests in your repository, while making sure those changes are throughly vetted before merging. When a repository employs a continuous integration service like Travis CI, branches can be protected based on their build statuses so the review process can be largely automated, giving contributors self-efficacy. Project maintainers also benefit by focusing their attention on gray areas and processes that can't be easily automated.I've changed the protections for the Step 5: Protect the
|
1 similar comment
|
Now that you've added some validation tests to your CI build, it's time to turn on some branch protections. Protected branches ensure that collaborators cannot make irrevocable changes to specific branches. This also allows you to enable CI required status checks to pass before merging. Why use protected branches?Protected branches allow contributors to create branches and pull requests in your repository, while making sure those changes are throughly vetted before merging. When a repository employs a continuous integration service like Travis CI, branches can be protected based on their build statuses so the review process can be largely automated, giving contributors self-efficacy. Project maintainers also benefit by focusing their attention on gray areas and processes that can't be easily automated.I've changed the protections for the Step 5: Protect the
|
|
Awesome, nice work getting those branch protections in place 🎉 But, right before you enabled your branch protections, something happened. A contributor committed invalid syntax on
Looking at your build status, click on the Details link as shown below in one of your builds: Navigate to the Build Failed section and click on the build failed link: Notice that you get the following error: Liquid Exception: Liquid syntax error (line 1): Unknown tag 'site' in docs/01_getting_ready_for_class.mdJekyll uses Liquid, an open-source templating language. Liquid loads data dynamically and implements conditional logic. Some of the Liquid syntax in one of the files is incorrect. Step 6: Fix the broken buildLet's find the broken syntax and fix the build! ⌨️ Activity: Fix the build in your codebase
I'll respond below with your next step. |
Co-authored-by: github-learning-lab[bot] <37936606+github-learning-lab[bot]@users.noreply.github.com>
|
Nice job finding and fixing that Liquid syntax! It might take a moment, but notice as your build is complete that all checks have passed. Step 7: Merge code with a successful buildNow that your pull request has a successful build, let's merge it! ⌨️ Activity: Merge the pull request
I'll respond below with your next step. |
Navigate to your new pull request for next steps. |



In this pull request, I've added some tests to help ensure the project builds. This is just one example of how you can customize specific validations that will be ran when your CI starts a build. I need you to add a script to build our project in the
.travis.ymlfile.