Merge pull request #63 from kiwix/Issue#62 #27
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: 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@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: adopt | |
java-version: 11 | |
- 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@v3 | |
- name: Upload Coverage to GH-Actions | |
uses: actions/[email protected] | |
if: ${{ always() }} | |
with: | |
name: Tests Coverage Report | |
path: | | |
lib/build/coverage-report/ |