chore(CI): add env var JAVA_TOOL_OPTIONS, hack/unify os properties

- environment variables are visible to child processes
- set env var `JAVA_TOOL_OPTIONS` to `-Dfile.encoding=UTF-8 -Duser.timezone=Asia/Shanghai`
This commit is contained in:
Jerry Lee 2024-12-10 11:56:43 +08:00
parent 9a2454e055
commit d4bd5039ac

View File

@ -33,6 +33,8 @@ jobs:
cache: maven
- name: Build with Maven and generate code coverage
run: ./mvnw -V --no-transfer-progress -Pgen-javadoc -Pgen-dokka clean package
env:
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Duser.timezone=Asia/Shanghai
# https://github.com/marketplace/actions/codecov
- uses: codecov/codecov-action@v3
with: