Skip to content

Commit

Permalink
split build into separate step (long logs)
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 12, 2024
1 parent 633d455 commit 4a6ecc9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'

- name: Build
run: make -C java target/jacoco.exec

- name: Run tests (serially)
if: ${{ matrix.java-version == 21 && matrix.os == 'ubuntu-latest' }}
run: make ja_test
Expand Down
9 changes: 6 additions & 3 deletions java/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ help:
clean:
@$(MVN) clean || echo

target/jacoco.exec: ../LICENSE
@$(MVN) $(MVN_FLAGS) test -Dtest.single

.PHONY: test
test: ../LICENSE
test: target/jacoco.exec
@$(MVN) $(MVN_FLAGS) test -Dtest.single

test_auto: ../LICENSE
test_auto: target/jacoco.exec
@$(MVN) $(MVN_FLAGS) test -T 1C

.PHONY: test_%
test_%: ../LICENSE
test_%: target/jacoco.exec
@$(MVN) $(MVN_FLAGS) test -T $*

.PHONY: lint
Expand Down

0 comments on commit 4a6ecc9

Please sign in to comment.