GitHub Actions Quickstart: Configure Automatic Tests on a Maven IntelliJ IDEA Java Project

Опубликовано: 19 Январь 2025
на канале: Brandan Jones
3,044
55

Do you want to quickly configure GitHub to run unit tests automatically, with each push? Are you curious how CI/CD works, and what a yml/yaml file is? In this video, I walk through the steps to accomplish that, in a quick start guide. I Create a new Java Maven project in IntelliJ IDEA. Add a POJO and a unit test class. Update the pom.xml to include JUnit and surefire test plugins. Commit and push to GitHub. Add a GitHub action for a Java Maven project. Watch the process run and the tests pass. Next, I intentionally break the test, commit and push again, so that we can see the result of a test failure, directly in our GitHub project. Source code for this project is freely available at https://github.com/discospiff/GitHubA... . Navigate there to find the pom.xml entries that I added to make this project work!