Skip to content

chore: update sample to Kotlin 2.0 #148

chore: update sample to Kotlin 2.0

chore: update sample to Kotlin 2.0 #148

Workflow file for this run

name: Run Tests upon PullRequest
on:
pull_request:
branches:
- master
concurrency:
group: pullrequest-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Run Test Cases
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('**/buildSrc/src/main/kotlin/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Execute test cases
run: ./gradlew test
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports
path: ./*/build/reports/tests/