Skip to content

Fix kmp deployment workflow #135

Fix kmp deployment workflow

Fix kmp deployment workflow #135

Workflow file for this run

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/