diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 95a3cd0b..c95b8612 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -46,7 +46,11 @@ jobs:
- name: Chmod
run: chmod +x mvnw
- name: Test with Maven
+ if: ${{ matrix.java == '8' }}
run: ./mvnw test -B -Dmaven.test.skip=false
+ - name: Test with Maven
+ if: ${{ matrix.java != '8' }}
+ run: ./mvnw test -B -Dmaven.test.skip=false --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED
- name: Maven Build
run: ./mvnw install -B -V
- name: Java Doc
diff --git a/easyexcel-test/pom.xml b/easyexcel-test/pom.xml
index 0b8eb98e..8c540b22 100644
--- a/easyexcel-test/pom.xml
+++ b/easyexcel-test/pom.xml
@@ -71,7 +71,6 @@
org.apache.maven.plugins
maven-surefire-plugin
- --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED
/com/alibaba/easyexcel/test/core/**/*.java