Demo: building the Shop pipeline in GitHub Actions
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
a PR workflow that builds and tests Shop. Prepares JNR-051-LAB1.
Draft outline details
Step by step
- Create
.github/workflows/ci.ymltriggered bypull_request. - Add checkout, setup-java with cache, and
./mvnw -B verify. - Push a branch, open a PR, and watch the run.
- Make a test fail on purpose and see the red check.
- Planned mistake: a build that passes with zero tests run because tests were skipped with
-DskipTests; remove the flag and confirm the test count in the log. - Upload the test report as an artifact.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.