Skip to content

Commit

Permalink
Add Makefile and update gradle.yml accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
niyatanya committed Aug 1, 2024
1 parent 254e748 commit 890b266
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 890b266

Please sign in to comment.