Fix test result formatting #167
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| shared: | |
| name: Shared & Android app | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Build | |
| run: ./gradlew spotlessCheck assembleDebug | |
| - name: Test | |
| run: ./gradlew testDebugUnitTest | |
| - name: Publish Kotlin results | |
| uses: dorny/test-reporter@v2.1.1 | |
| if: always() | |
| with: | |
| name: Kotlin results | |
| path: '**/build/test-results/**/TEST-*.xml' | |
| reporter: java-junit | |
| fail-on-error: true | |
| ios: | |
| name: iOS app | |
| runs-on: macos-26 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Configure Xcode | |
| uses: maxim-lobanov/setup-xcode@v1.6.0 | |
| with: | |
| xcode-version: '26.1' | |
| - name: Setup JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Install xcbeautify | |
| run: brew install xcbeautify | |
| - name: Test | |
| run: | | |
| set -o pipefail && xcodebuild test -project ios/RunLog.xcodeproj \ | |
| -scheme RunLog \ | |
| -sdk iphonesimulator \ | |
| -destination 'platform=iOS Simulator,name=iPhone 17,OS=26.1' \ | |
| -resultBundlePath TestResults | xcbeautify --renderer github-actions |