Skip to content

Fix coverage report #873

Fix coverage report

Fix coverage report #873

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build and Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Build and Test coverage Report
run: bash ./gradlew test unitTestCoverageReport --stacktrace
- uses: codecov/codecov-action@v5.1.2
with:
files: ./app/build/reports/jacoco/unitTestCoverageReport/unitTestCoverageReport.xml,./securesmsproxyapi/build/reports/jacoco/unitTestCoverageReport/unitTestCoverageReport.xml
token: ${{ secrets.CODECOV_TOKEN }}
apk:
name: Generate APK
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Build debug APK
run: bash ./gradlew assembleDebug --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: secure-sms-proxy
path: ./app/build/outputs/apk/debug/app-debug.apk