Skip to content

chore: setup quality checks #2

chore: setup quality checks

chore: setup quality checks #2

name: Code Quality Checks
on: pull_request
jobs:
unit-test-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 21
- name: Pull GraphQL Submodule
run: ./scripts/graphql/init.sh
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build Project & Run Unit-Tests
id: build
continue-on-error: true
run: gradle clean build
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: code/build/reports/kover
- name: Fail on Low Coverage
if: steps.build.conclusion == 'failure'
run: echo "Coverage is too low. Please add more tests." && exit 1