Commit 26a4245
committed
ci: add GitHub Actions workflow to run the build on PRs and main
The quality gates (tests, ktlint, detekt, apiCheck, explicit-API strict mode,
allWarningsAsErrors, and the aggregate 80% Kover coverage floor) previously ran
only on developer machines, so a PR could merge while breaking any of them.
Add .github/workflows/ci.yml that runs `./gradlew build` on every pull request
and on pushes to main. `./gradlew build` already chains the full gate, so the
workflow stays minimal:
- Checks out submodules recursively (the styleguide directory is a submodule).
- Installs a single Temurin JDK 21. The foojay-resolver-convention plugin
auto-provisions the JDK 8 and JDK 11 toolchains the modules need, and JDK 21
covers the virtual-threads module. JDK 21 (not the newest LTS) is deliberate:
detekt 1.23.x crashes on JDK 25+, so the daemon stays on 21 to keep detekt green.
- Uses gradle/actions/setup-gradle for dependency and build caching.
Also add a CI status badge to the README.1 parent ea0cc81 commit 26a4245
2 files changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments