diff --git a/.github/workflows/cibuild.yml b/.github/workflows/cibuild.yml
index 66162ed6b3a..212c3934dc2 100644
--- a/.github/workflows/cibuild.yml
+++ b/.github/workflows/cibuild.yml
@@ -14,6 +14,12 @@ on:
- master
- dev-1.x
- dev-2.x
+env:
+ # Since version 3.9.0 of Maven it will automatically understand this environment variable.
+ # However, as of 2024-11 the latest versions of Ubuntu and Debian were on 3.8.8 so it will take some
+ # time until we can remove the $MAVEN_ARGS below.
+ MAVEN_ARGS: "--no-transfer-progress -Dstyle.color=always"
+
jobs:
build-linux:
runs-on: ubuntu-latest
@@ -46,22 +52,29 @@ jobs:
# https://github.com/actions/runner-images/issues/1499
# we set nodePath and npmPath to skip downloading the node binary, which frequently times out
run: |
- mvn --batch-mode jacoco:prepare-agent test jacoco:report -P prettierCheck -Dprettier.nodePath=node -Dprettier.npmPath=npm
- mvn --batch-mode package -Dmaven.test.skip -P prettierSkip
+ mvn $MAVEN_ARGS jacoco:prepare-agent test jacoco:report -P prettierCheck -Dprettier.nodePath=node -Dprettier.npmPath=npm
+ mvn $MAVEN_ARGS package -Dmaven.test.skip -P prettierSkip
- name: Send coverage data to codecov.io
if: github.repository_owner == 'opentripplanner'
uses: codecov/codecov-action@v4
with:
- files: target/site/jacoco/jacoco.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
+ - name: Upload test results to Codecov
+ # always upload test results, even when failed
+ if: ${{ !cancelled() }}
+ uses: codecov/test-results-action@v1
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: "*TEST-*.xml"
+
- name: Deploy to Github Package Registry
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev-1.x' || github.ref == 'refs/heads/dev-2.x')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: mvn --batch-mode deploy --settings maven-settings.xml -DskipTests -DGITHUB_REPOSITORY=$GITHUB_REPOSITORY -P prettierSkip -P deployGitHub
+ run: mvn $MAVEN_ARGS deploy --settings maven-settings.xml -DskipTests -DGITHUB_REPOSITORY=$GITHUB_REPOSITORY -P prettierSkip -P deployGitHub
build-windows:
timeout-minutes: 20
@@ -79,7 +92,7 @@ jobs:
- name: Configure Windows Pagefile
uses: al-cheb/configure-pagefile-action@v1.4
- name: Run tests
- run: mvn --batch-mode test -P prettierSkip
+ run: mvn $MAVEN_ARGS test -P prettierSkip
docs:
if: github.repository_owner == 'opentripplanner'
@@ -192,7 +205,7 @@ jobs:
distribution: temurin
cache: maven
- name: Compile Java code
- run: mvn --batch-mode compile -DskipTests -P prettierSkip
+ run: mvn $MAVEN_ARGS compile -DskipTests -P prettierSkip
container-image:
if: github.repository_owner == 'opentripplanner' && github.event_name == 'push' && (github.ref == 'refs/heads/dev-2.x' || github.ref == 'refs/heads/master')
@@ -237,4 +250,4 @@ jobs:
MAVEN_SKIP_ARGS="-P prettierSkip -Dmaven.test.skip=true -Dmaven.source.skip=true"
- mvn --batch-mode $MAVEN_SKIP_ARGS package com.google.cloud.tools:jib-maven-plugin:build -Djib.to.tags=latest,$image_version
+ mvn $MAVEN_ARGS $MAVEN_SKIP_ARGS package com.google.cloud.tools:jib-maven-plugin:build -Djib.to.tags=latest,$image_version
diff --git a/pom.xml b/pom.xml
index caa3b6779ba..afedd24e9ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -222,8 +222,6 @@
--add-opens java.base/sun.invoke.util=ALL-UNNAMED
--add-opens java.xml/org.xml.sax.helpers=ALL-UNNAMED
-
- true
plain
true
@@ -237,6 +235,7 @@
true
true
false
+ UNICODE