DEGTEVUWU/java-project-72

View on GitHub
.github/workflows/main.yml

Summary

Maintainability
Test Coverage
name: Basic Functionality Check

on:
  - push
  - pull_request

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-java@v3
        with:
          java-version: '20'
          distribution: 'temurin'
      - uses: gradle/gradle-build-action@v2
        with:
          gradle-version: 8.3
      - run: make test
      - run: make report
      - run: make lint
      - name: Set execute permissions for cc-test-reporter
        run: chmod +x ./app/cc-test-reporter
      - name: Publish code coverage
        uses: paambaati/codeclimate-action@v5.0.0
        env:
           CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
           JACOCO_SOURCE_PATH: app/src/main/java
        with:
           coverageCommand: make report 
           coverageLocations: ${{github.workspace}}/app/build/reports/jacoco/test/jacocoTestReport.xml:jacoco