mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-08-03 11:06:15 -04:00

* Upgraded the gradle to support the Android 14. * Made the changes in code to adapt the new gradle. * Rectify the deprecated code that are not working in new version of gradle.
45 lines
964 B
YAML
45 lines
964 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
Build:
|
|
name: Build & test source code
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: adopt
|
|
java-version: 17
|
|
|
|
- name: Install dependencies
|
|
run: bash ./install_deps.sh
|
|
|
|
- name: Compile Project
|
|
run: ./gradlew buildHeaders build
|
|
|
|
- name: Create code coverage report
|
|
run: ./gradlew createCodeCoverageReport
|
|
|
|
- name: Upload code coverage to Codecov
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Coverage to GH-Actions
|
|
uses: actions/upload-artifact@v4
|
|
if: ${{ always() }}
|
|
with:
|
|
name: Tests Coverage Report
|
|
path: |
|
|
lib/build/coverage-report/
|