Update dependency org.jetbrains.kotlinx.binary-compatibility-validato… #385
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: Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
macos-tests: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- name: Cache Build files | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.konan | |
~/.gradle | |
key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }}-v1 | |
- uses: gradle/gradle-build-action@v3 | |
name: Test Jvm/JS/Apple targets | |
with: | |
arguments: koverMergedXmlReport | |
- name: Archive Reports | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: reports | |
path: '**/build/reports/*' | |
- name: Archive Test Results | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: test-results | |
path: '**/TEST-*.xml' | |
windows-tests: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- uses: gradle/gradle-build-action@v3 | |
name: Test Windows Target | |
with: | |
arguments: mingwX64Test | |
- name: Archive Reports | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: reports | |
path: '**/build/reports/*' | |
- name: Archive Test Results | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: test-results | |
path: '**/TEST-*.xml' | |
linux-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- name: Cache Build files | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.konan | |
~/.gradle | |
key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }}-v1 | |
- uses: gradle/gradle-build-action@v3 | |
name: Test Linux Target | |
with: | |
arguments: linuxX64Test | |
- name: Archive Reports | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: reports | |
path: '**/build/reports/*' | |
- name: Archive Test Results | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: test-results | |
path: '**/TEST-*.xml' | |
upload-kover-reports: | |
runs-on: ubuntu-latest | |
needs: [ macos-tests ] | |
steps: | |
- uses: actions/checkout@master | |
- name: Download kover reports | |
uses: actions/download-artifact@v3 | |
with: | |
name: reports | |
- uses: codecov/codecov-action@v4 | |
with: | |
files: "build/reports/kover/merged/**/*.xml" | |
upload-junit-results: | |
runs-on: ubuntu-latest | |
needs: [ linux-tests, macos-tests, windows-tests ] | |
if: ${{ always() }} | |
steps: | |
- uses: actions/checkout@master | |
- name: Download test results | |
uses: actions/download-artifact@v3 | |
with: | |
name: test-results | |
- name: Publish Unit Test Results | |
uses: mikepenz/action-junit-report@v4 | |
if: ${{ always() }} | |
with: | |
report_paths: '**/TEST-*.xml' |