forked from uchuhimo/konf
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.73 KB
/
gradle.yml
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
name: Konf CI
on: [ push ]
jobs:
build:
name: Build on JDK ${{ matrix.java_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Only covers Java 21 because the publishing plugin doesn't work on lesser versions
java_version: [ 21 ]
os: [ ubuntu-latest, windows-latest, macOS-latest ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ matrix.java_version }}
cache: "gradle"
- name: Build and Test with Gradle
env:
OSS_USER_TOKEN: ${{ secrets.OSS_USER_TOKEN }}
OSS_USER_PASSWORD: ${{ secrets.OSS_USER_PASSWORD }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: ./gradlew build
- name: Report Coveralls (Linux)
if: startsWith(runner.os, 'Linux')
run: curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls report build/reports/kover/report.xml
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Report Coveralls (Windows)
if: startsWith(runner.os, 'Windows')
run: curl -sL https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.zip | zcat > ./coveralls.exe && ./coveralls.exe report build/reports/kover/report.xml
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Report Coveralls (macOS)
if: startsWith(runner.os, 'macOS')
run: |
brew tap coverallsapp/coveralls --quiet
brew install coveralls --quiet
coveralls report build/reports/kover/report.xml