The purpose of this assignment is to create a GitHub Actions workflow for a Java Spring project based on the provided GitHub repository. This assignment will help you test your knowledge and skills in implementing GitHub Actions workflows.
-
Fork the provided GitHub repository
https://github.com/chandradeoarya/devops-cicd-gaction-java-spring
-
Clone the repository to your local machine.
-
Create a new branch from the main branch, and name it as
github-action. -
Create a new file in the root directory of the project called
java.ymland write the GitHub Actions workflow for the project in this file. The workflow should include the following steps:- Checkout the code from the
github-actionbranch. - Set up the Java environment for the project.
- Build the project using Maven.
- [optional] Deploy the project to a remote server using SSH.
- Checkout the code from the
-
Commit and push the changes to the
github-actionbranch. -
Create a pull request from the
github-actionbranch to the main branch.
- A GitHub Actions workflow file named
java.yml. - A pull request from the
github-actionbranch to the main branch. - Screenshot of the successful run.
- Github repository URL.