https://github.com/olillin/ci-test
Learning CI with GitHub and JUnit
https://github.com/olillin/ci-test
Last synced: over 1 year ago
JSON representation
Learning CI with GitHub and JUnit
- Host: GitHub
- URL: https://github.com/olillin/ci-test
- Owner: olillin
- License: mit
- Created: 2022-12-09T22:10:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T19:48:01.000Z (over 2 years ago)
- Last Synced: 2025-01-29T15:34:04.082Z (over 1 year ago)
- Language: Java
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CI-Test [](https://codecov.io/gh/olillin/CI-Test)
I did it!
## Process
1. Designate a team bot in the yaml settings at [Codecov](https://codecov.io). Either global or for the repository.
```yml
codecov:
bot: olillin
```
2. Config GitHub Actions workflow with [Gradle Build Action](https://github.com/marketplace/actions/gradle-build-action) and [Codecov](https://github.com/marketplace/actions/codecov) actions. *[See the workflow file](.github/workflows/gradle.yml)*
3. Configure [build.gradle](build.gradle) to generate coverage reports using [JaCoCo](https://docs.gradle.org/current/userguide/jacoco_plugin.html).
4. Run `git update-index --chmod=+x gradlew` to make `gradlew` runnable by GitHub Actions and avoid `Error: Gradle script '/home/runner/**/gradlew' is not executable.`
5. Get badge/shield from https://app.codecov.io/gh/olillin/CI-Test/settings/badge. Alternatively https://shields.io/category/coverage