File tree 5 files changed +18
-16
lines changed
5 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ${{ matrix.os }}
8
8
strategy :
9
9
matrix :
10
- os : [ubuntu-latest]
11
- java : [17, 21, 22-ea]
12
- distribution : ['temurin']
10
+ cache : [maven]
11
+ distribution : [temurin]
12
+ java : [17, 21, 22, 23-ea]
13
+ os : [ubuntu-latest, macos-latest, windows-latest]
13
14
fail-fast : false
14
15
max-parallel : 4
15
16
name : Test JDK ${{ matrix.java }}, ${{ matrix.os }}
21
22
with :
22
23
java-version : ${{ matrix.java }}
23
24
distribution : ${{ matrix.distribution }}
25
+ cache : ${{ matrix.cache }}
24
26
- name : Test with Maven
25
27
run : ./mvnw test -B -V --no-transfer-progress -D"license.skip=true"
Original file line number Diff line number Diff line change 11
11
- name : Set up JDK
12
12
uses : actions/setup-java@v4
13
13
with :
14
+ cache : maven
15
+ distribution : temurin
14
16
java-version : 21
15
- distribution : zulu
16
17
- name : Report Coverage to Coveralls for Pull Requests
17
18
if : github.event_name == 'pull_request'
18
19
run : ./mvnw -B -V test jacoco:report coveralls:report -q -Dlicense.skip=true -DrepoToken=$GITHUB_TOKEN -DserviceName=github -DpullRequest=$PR_NUMBER --no-transfer-progress
Original file line number Diff line number Diff line change @@ -14,21 +14,18 @@ jobs:
14
14
- name : Set up JDK
15
15
uses : actions/setup-java@v4
16
16
with :
17
+ cache : maven
18
+ distribution : temurin
17
19
java-version : 21
18
- distribution : zulu
19
- - uses : webfactory/ssh-agent@master
20
- with :
21
- ssh-private-key : ${{ secrets.DEPLOY_KEY }}
22
20
- name : Build site
23
- run : ./mvnw site site:stage -DskipTests -B -V --no-transfer-progress -Dlicense.skip=true
21
+ run : ./mvnw site site:stage -DskipTests -Dlicense.skip=true - B -V --no-transfer-progress --settings ./.mvn/settings.xml
24
22
env :
25
23
CI_DEPLOY_USERNAME : ${{ secrets.CI_DEPLOY_USERNAME }}
26
24
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
+ NVD_API_KEY : ${{ secrets.NVD_API_KEY }}
27
26
- name : Deploy Site to gh-pages
28
- uses : JamesIves/github-pages-deploy-action@v4.6.3
27
+ uses : JamesIves/github-pages-deploy-action@v4
29
28
with :
30
- ssh-key : true
31
29
branch : gh-pages
32
30
folder : target/staging
33
- env :
34
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ ssh-key : ${{ secrets.DEPLOY_KEY }}
Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ jobs:
17
17
- name : Set up JDK
18
18
uses : actions/setup-java@v4
19
19
with :
20
+ cache : maven
21
+ distribution : temurin
20
22
java-version : 21
21
- distribution : zulu
22
23
- name : Analyze with SonarCloud
23
- run : ./mvnw verify jacoco:report sonar:sonar -B -Dsonar.projectKey=mybatis_mybatis-dynamic-sql -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN -Dlicense.skip=true --no-transfer-progress
24
+ run : ./mvnw verify jacoco:report sonar:sonar -B -V - Dsonar.projectKey=mybatis_mybatis-dynamic-sql -Dsonar.organization=mybatis -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN -Dlicense.skip=true --no-transfer-progress
24
25
env :
25
26
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
27
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change 14
14
- name : Set up JDK
15
15
uses : actions/setup-java@v4
16
16
with :
17
+ cache : maven
18
+ distribution : temurin
17
19
java-version : 21
18
- distribution : zulu
19
20
- name : Deploy to Sonatype
20
21
run : ./mvnw deploy -DskipTests -B -V --no-transfer-progress --settings ./.mvn/settings.xml -Dlicense.skip=true
21
22
env :
You can’t perform that action at this time.
0 commit comments