Skip to content

optimize: simplify-pom 插件,不再将多个换行替换为单个换行。 #151

optimize: simplify-pom 插件,不再将多个换行替换为单个换行。

optimize: simplify-pom 插件,不再将多个换行替换为单个换行。 #151

Workflow file for this run

name: "Test"
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
test:
name: "Test"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ 8, 11, 17, 21 ]
maven: [
3.9.5,
3.8.8,
3.6.3,
3.5.4,
3.3.9,
3.2.5,
3.1.1,
3.0.5,
# not support 2.x
#2.2.1,
#2.1.0,
#2.0.11
]
steps:
# step 1
- name: "Checkout"
uses: actions/[email protected]
# step 2
- name: "Setup Java JDK"
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
# step 3
- name: "Print maven version"
run: |
mvn -version
# step 4
- name: "Run Test With Maven"
run: |
if [ "${{ matrix.java }}" == "8" ]; then
mvn clean test -Pcicd8 -Dmaven.version=${{ matrix.maven }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
else
mvn clean test -Pcicd -Dmaven.version=${{ matrix.maven }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
fi
# step 5
- name: "Codecov"
if: matrix.java == '8' && matrix.maven == '3.9.0' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master')
uses: codecov/[email protected]