Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joaomlneto/github-ci-tutorial-java

An example on how to use GitHub Actions in a Java project
https://github.com/joaomlneto/github-ci-tutorial-java

ci cicd continuous-integration github github-actions github-actions-ci github-actions-java java junit junit5 quickstart tutorial tutorial-code

Last synced: about 2 months ago
JSON representation

An example on how to use GitHub Actions in a Java project

Awesome Lists containing this project

README

        

# Tutorial: Java CI using GitHub Actions
A working minimal example on how to use GitHub Actions for CI in a Java project.

[![Run Maven Tests on Push to Main](https://github.com/joaomlneto/github-ci-tutorial-java/actions/workflows/run-maven-tests-on-push.yaml/badge.svg)](https://github.com/joaomlneto/github-ci-tutorial-java/actions/workflows/run-maven-tests-on-push.yaml)

This repository has a [workflow](.github/workflows/run-maven-tests-on-push.yaml) that is triggered whenever code is pushed to the `main` branch and checks whether the checked-in code passes the tests.

[Click here for the example using Travis CI instead of GitHub Actions](https://github.com/joaomlneto/travis-ci-tutorial-java)

### How can I play with it myself?
1. [Fork this repository](https://github.com/joaomlneto/github-ci-tutorial-java/fork).
2. Fix the `README.md` badges (replacing all occurrences of `joaomlneto` with ***your GitHub username***) and push the changes.
3. Verify if workflow executes and test pass, going to the [Actions](https://github.com/joaomlneto/github-ci-tutorial-java/actions) tab.

### Contributing
Mistakes? Questions? Suggestions?
[Open an Issue](https://github.com/joaomlneto/github-ci-tutorial-java/issues/new)!