File tree Expand file tree Collapse file tree 1 file changed +20
-26
lines changed Expand file tree Collapse file tree 1 file changed +20
-26
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
3
on :
4
- [ "push", "pull_request" ]
5
-
6
- env :
7
- BUILD_JDK : ' 17'
8
- TEST_JDK : ' 8'
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
9
10
10
11
jobs :
11
- build :
12
- name : build and test
12
+ ci :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v3
16
- - name : Set up JDK
17
- uses : actions/setup-java@v3
18
- with :
19
- java-version : |
20
- ${{ env.TEST_JDK }}
21
- ${{ env.BUILD_JDK }}
22
- distribution : ' corretto'
23
- cache : maven
24
- - name : Build with Maven
25
- run : |
26
- ./mvnw -ntp -B package
27
- - name : Run integration tests
28
- run : |
29
- ./mvnw -e -ntp -B -Dinvoker.javaHome="$JAVA_HOME_${{ env.TEST_JDK }}_${{ runner.arch }}" verify
30
- - name : Run integration tests on older Maven
31
- run : |
32
- ./mvnw wrapper:wrapper -Dmaven=3.6.0
33
- ./mvnw -e -B -Dinvoker.javaHome="$JAVA_HOME_${{ env.TEST_JDK }}_${{ runner.arch }}" verify
15
+ - uses : actions/checkout@v3
16
+
17
+ - uses : actions/setup-java@v3
18
+ id : build_jdk
19
+ with :
20
+ java-version : 17
21
+ distribution : temurin
22
+ cache : maven
34
23
24
+ - name : build distribution
25
+ run : |
26
+ ./mvnw --version
27
+ echo $PATH
28
+ ./mvnw -B -fae clean install
You can’t perform that action at this time.
0 commit comments