Skip to content

Merged branches

Merged branches #20

Workflow file for this run

# main ci workflow is to ensure the codebase builds with the gradle wrapper.
# all unit tests must pass for the workflow to complete successfully.
# a JaCoCo coverage report will be published as an artifact.
name: main-ci
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "0 7 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Execute Gradle build, test and Jacoco test report generation
run: |
sh ./gradlew build test jacocotestreport
- name: Publish JaCoCo test report
run: |
mkdir -p ${{ github.workspace }}/build/reports/jacoco/test
cp -r ktvn/build/reports/jacoco/test jacoco-report
if: always()
- name: Upload JaCoCo Test Report
uses: actions/upload-artifact@v3
with:
name: jacoco-report
path: jacoco-report