Skip to content

Commit fdbbc8c

Browse files
committed
build: simplify GitHub Action build
1 parent af0facc commit fdbbc8c

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/full-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main # Only run push on main (merges/direct pushes)
7+
tags:
8+
- 'v*' # Triggers on any tag starting with 'v' (e.g., v1.0, v2.1.3)
79
pull_request:
810
branches:
911
- main # Run on any PR targeting main
@@ -27,15 +29,13 @@ jobs:
2729
java-version: ${{ matrix.java-version }}
2830
distribution: 'temurin'
2931
cache: maven
30-
- name: Install
31-
run: mvn clean install -DskipTests -q -P gradlePlugin
3232
- name: Build
33-
run: mvn -B package -P gradlePlugin
33+
run: mvn -B install -P gradlePlugin --no-transfer-progress
3434
env:
3535
BUILD_LOG_LEVEL: 'ERROR'
3636
- name: Tests
3737
uses: mikepenz/action-junit-report@v5
38-
if: failure()
38+
if: always()
3939
with:
4040
check_name: Test ${{ matrix.os }} ${{ matrix.java-version }}
4141
report_paths: '*/target/*/TEST-*.xml'

.github/workflows/quick-build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,15 @@ jobs:
2424
java-version: ${{ matrix.java_version }}
2525
distribution: 'temurin'
2626
cache: maven
27-
- name: Install
28-
run: mvn install -DskipTests -q -B
29-
env:
30-
BUILD_LOG_LEVEL: 'ERROR'
3127
- name: Build
32-
run: mvn package
28+
run: mvn -B install -P gradlePlugin --no-transfer-progress
3329
env:
3430
BUILD_PORT: 0
3531
BUILD_SECURE_PORT: 0
3632
BUILD_LOG_LEVEL: 'ERROR'
3733
- name: Test Result
3834
uses: mikepenz/action-junit-report@v5
39-
if: failure()
35+
if: always()
4036
with:
4137
check_name: JUnit ${{ matrix.kind }} ${{ matrix.java_version }} ${{ matrix.os }}
4238
report_paths: '*/target/*/TEST-*.xml'

0 commit comments

Comments
 (0)