inspect: Fix some other minor inspections #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |
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.COVERALLS_REPO_TOKEN }} | |
- name: Report Coveralls (Windows) | |
if: startsWith(runner.os, 'Windows') | |
run: | | |
Invoke-WebRequest -Uri "https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.zip" -OutFile "coveralls-windows.zip" | |
Add-Type -AssemblyName System.IO.Compression.FileSystem | |
[System.IO.Compression.ZipFile]::ExtractToDirectory("coveralls-windows.zip", ".") | |
Remove-Item "coveralls-windows.zip" | |
Start-Process -FilePath ".\coveralls.exe" -ArgumentList "report build/reports/kover/report.xml" -NoNewWindow -Wait | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
- name: Report Coveralls (macOS) | |
if: startsWith(runner.os, 'macOS') | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: | | |
brew tap coverallsapp/coveralls --quiet | |
brew install coveralls --quiet | |
coveralls report build/reports/kover/report.xml |