Skip to content

test: 添加更多poi版本的兼容性测试。 #2

test: 添加更多poi版本的兼容性测试。

test: 添加更多poi版本的兼容性测试。 #2

Workflow file for this run

name: "Test POI"
on:
push:
branches: [ develop, master, spring-boot_* ]
pull_request:
branches: [ develop ]
jobs:
# job 1
test-poi:
name: "Test POI"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ 8, 11, 17, 21 ]
poi: [
5.3.0,
5.2.5,
5.1.0,
5.0.0,
4.1.2,
4.0.1,
3.17,
3.16,
3.15,
3.14,
3.13,
3.12,
3.11,
3.10.1,
3.9,
3.8,
3.7,
3.6
]
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 -Duser.timezone=GMT+0 -Dapache-poi.version=${{ matrix.poi }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
else
mvn clean test -Pcicd -Duser.timezone=GMT+0 -Dapache-poi.version=${{ matrix.poi }} -e -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn;
fi