diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 9b138f0f..b47a2673 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -22,7 +22,7 @@ jobs: uses: paambaati/codeclimate-action@v5.0.0 env: CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} - JACOCO_SOURCE_PATH: app/src/main/java + JACOCO_SOURCE_PATH: src/main/java with: - coverageCommand: make -C app report - coverageLocations: ${{github.workspace}}/app/build/reports/jacoco/test/jacocoTestReport.xml:jacoco + coverageCommand: make report + coverageLocations: ${{github.workspace}}/build/reports/jacoco/test/jacocoTestReport.xml:jacoco diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..9e6bf2d0 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +run-dist: #запуск программы + ./build/install/app/bin/app + +start: + ./gradlew run + +build: + ./gradlew clean + ./gradlew build + +clean: + ./gradlew clean + +test: + ./gradlew clean + ./gradlew test + +report: + ./gradlew jacocoTestReport + +lint: + ./gradlew checkstyleMain checkstyleTest + +build-run: build run + +.PHONY: build \ No newline at end of file