Skip to content

Commit 7bc953b

Browse files
committed
update CI job
1 parent 5ae6c1e commit 7bc953b

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
name: CI
22

33
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
910

1011
jobs:
11-
build:
12-
name: build and test
12+
ci:
1313
runs-on: ubuntu-latest
1414
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
3423

24+
- name: build distribution
25+
run: |
26+
./mvnw --version
27+
echo $PATH
28+
./mvnw -B -fae clean install

0 commit comments

Comments
 (0)