Skip to content
This repository was archived by the owner on Jul 25, 2025. It is now read-only.

Commit dced4c5

Browse files
committed
chore(): Make workflow coherent with others
1 parent 39357ea commit dced4c5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Java CI
22

33
on:
44
push:
5+
branches: [ "master" ]
56
pull_request:
6-
branches:
7-
- master
7+
branches: [ "master" ]
8+
9+
env:
10+
JAVA_VERSION: '17'
11+
JAVA_DISTRIBUTION: 'temurin'
812

913
jobs:
1014
build:
@@ -17,8 +21,8 @@ jobs:
1721
- name: 'Set up JDK 17'
1822
uses: actions/setup-java@v3
1923
with:
20-
java-version: '17'
21-
distribution: 'adopt'
24+
java-version: ${{ env.JAVA_VERSION }}
25+
distribution: ${{ env.JAVA_DISTRIBUTION }}
2226

2327
- name: 'Build and Test'
2428
run: ./mvnw --batch-mode --no-transfer-progress -Darchetype.test.ignoreEOLStyle=true verify archetype:integration-test

0 commit comments

Comments
 (0)