WIP multiplatform tests #43
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: Build and test | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Build and test | |
runs-on: macOS-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 21 | |
- name: API check | |
run: ./gradlew apiCheck | |
- name: Debug build | |
run: ./gradlew assembleDebug --stacktrace | |
- name: Unit test | |
run: ./gradlew allTests --stacktrace | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results | |
path: '*/build/reports/tests' |