Fix kmp deployment #115
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: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
build: | |
name: 🔨 Build & Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build with gradle | |
run: ./gradlew :daraja:build --stacktrace | |
- name: Execute unit tests | |
run: ./gradlew :daraja:allTests --stacktrace | |
- name: Generate test report | |
run: ./gradlew :daraja:koverHtmlReport --stacktrace | |
- name: Upload test report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: unit_tests_report.html | |
path: daraja/build/reports/kover/html/ | |