Skip to content

Commit

Permalink
makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovsenka committed Oct 6, 2024
1 parent 5907660 commit ebac84b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 44 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
build-root-directory: app
gradle-version: 8.7
- run: make lint
working-directory: ./app
- run: make test
working-directory: ./app
- name: Publish code coverage
if: ${{ github.event_name == 'push' }}
uses: paambaati/[email protected]
Expand All @@ -29,5 +31,6 @@ jobs:
JACOCO_SOURCE_PATH: ${{github.workspace}}/app/src/main/java
with:
debug: true
workingDirectory: ./app
coverageCommand: make report
coverageLocations: ${{github.workspace}}/app/build/reports/jacoco/test/jacocoTestReport.xml:jacoco
47 changes: 3 additions & 44 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,46 +1,5 @@
run-dist:
app/build/install/app/bin/app

run-dist-help:
app/build/install/app/bin/app -h

run-dist-version:
app/build/install/app/bin/app -V

run-dist-test:
app/build/install/app/bin/app src/test/resources/test1.json src/test/resources/test2.json

run-dist-test-yml:
app/build/install/app/bin/app src/test/resources/test1.yml src/test/resources/test2.yml

clean:
app/gradlew clean

build:
app/gradlew clean build

install:
app/gradlew clean install

run:
app/gradlew run

test:
cp app
./gradlew test

report:
cp app
./gradlew jacocoTestReport

lint:
cd app
./gradlew checkstyleMain
make -C app report

check-deps:
app/gradlew dependencyUpdates -Drevision=release


build-run: build run

.PHONY: build
run-dist:
make -C app run-dist
44 changes: 44 additions & 0 deletions app/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
run-dist:
./build/install/app/bin/app

run-dist-help:
./build/install/app/bin/app -h

run-dist-version:
./build/install/app/bin/app -V

run-dist-test:
./build/install/app/bin/app src/test/resources/test1.json src/test/resources/test2.json

run-dist-test-yml:
./build/install/app/bin/app src/test/resources/test1.yml src/test/resources/test2.yml

clean:
./gradlew clean

build:
./gradlew clean build

install:
./gradlew clean install

run:
./gradlew run

test:
./gradlew test

report:
./gradlew jacocoTestReport

lint:
cd app
./gradlew checkstyleMain

check-deps:
app/gradlew dependencyUpdates -Drevision=release


build-run: build run

.PHONY: build

0 comments on commit ebac84b

Please sign in to comment.