Skip to content

Merge pull request #505 from FWDekker/modern-dokka #301

Merge pull request #505 from FWDekker/modern-dokka

Merge pull request #505 from FWDekker/modern-dokka #301

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- 'README.md'
- '.github/**.md'
- '.github/img/**'
pull_request:
paths-ignore:
- 'README.md'
- '.github/**.md'
- '.github/img/**'
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
with:
generate-job-summary: false
- name: Run tests
run: xvfb-run --auto-servernum ./gradlew check
- name: Store coverage report
uses: actions/upload-artifact@v3
with:
name: coverage
path: build/reports/kover/report.xml
test-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
with:
generate-job-summary: false
- name: Run tests
run: ./gradlew check
test-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
with:
generate-job-summary: false
- name: Run tests
run: ./gradlew check
upload-coverage:
needs: [ test-linux, test-macos, test-windows ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Load coverage report
uses: actions/download-artifact@v3
with:
name: coverage
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
files: report.xml