|
15 | 15 | - dev-1.x |
16 | 16 | - dev-2.x |
17 | 17 | env: |
18 | | - # Since version 3.9.0 of Maven it will automatically understand this environment variable. |
19 | | - # However, as of 2024-11 the latest versions of Ubuntu and Debian were on 3.8.8 so it will take some |
20 | | - # time until we can remove the $MAVEN_ARGS below. |
| 18 | + # maven default arguments to make the log quieter and colourful |
21 | 19 | MAVEN_ARGS: "--no-transfer-progress -Dstyle.color=always" |
22 | 20 |
|
23 | 21 | jobs: |
|
52 | 50 | # https://github.com/actions/runner-images/issues/1499 |
53 | 51 | # we set nodePath and npmPath to skip downloading the node binary, which frequently times out |
54 | 52 | run: | |
55 | | - mvn $MAVEN_ARGS jacoco:prepare-agent test jacoco:report -P prettierCheck -Dprettier.nodePath=node -Dprettier.npmPath=npm |
56 | | - mvn $MAVEN_ARGS package -Dmaven.test.skip -P prettierSkip |
| 53 | + mvn jacoco:prepare-agent test jacoco:report -P prettierCheck -Dprettier.nodePath=node -Dprettier.npmPath=npm spotless:check |
| 54 | + mvn package -Dmaven.test.skip -P prettierSkip |
57 | 55 |
|
58 | 56 | - name: Send coverage data to codecov.io |
59 | 57 | if: github.repository_owner == 'opentripplanner' |
|
74 | 72 | if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev-1.x' || github.ref == 'refs/heads/dev-2.x') |
75 | 73 | env: |
76 | 74 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
77 | | - run: mvn $MAVEN_ARGS deploy --settings maven-settings.xml -DskipTests -DGITHUB_REPOSITORY=$GITHUB_REPOSITORY -P prettierSkip -P deployGitHub |
| 75 | + run: mvn deploy --settings maven-settings.xml -DskipTests -DGITHUB_REPOSITORY=$GITHUB_REPOSITORY -P prettierSkip -P deployGitHub |
78 | 76 |
|
79 | 77 | build-windows: |
80 | 78 | timeout-minutes: 20 |
|
92 | 90 | - name: Configure Windows Pagefile |
93 | 91 | uses: al-cheb/configure-pagefile-action@v1.4 |
94 | 92 | - name: Run tests |
95 | | - run: mvn $MAVEN_ARGS test -P prettierSkip |
| 93 | + run: mvn test -P prettierSkip |
96 | 94 |
|
97 | 95 | docs: |
98 | 96 | if: github.repository_owner == 'opentripplanner' |
@@ -205,7 +203,7 @@ jobs: |
205 | 203 | distribution: temurin |
206 | 204 | cache: maven |
207 | 205 | - name: Compile Java code |
208 | | - run: mvn $MAVEN_ARGS compile -DskipTests -P prettierSkip |
| 206 | + run: mvn compile -DskipTests -P prettierSkip |
209 | 207 |
|
210 | 208 | container-image: |
211 | 209 | if: github.repository_owner == 'opentripplanner' && github.event_name == 'push' && (github.ref == 'refs/heads/dev-2.x' || github.ref == 'refs/heads/master') |
@@ -250,4 +248,4 @@ jobs: |
250 | 248 | |
251 | 249 | MAVEN_SKIP_ARGS="-P prettierSkip -Dmaven.test.skip=true -Dmaven.source.skip=true" |
252 | 250 | |
253 | | - mvn $MAVEN_ARGS $MAVEN_SKIP_ARGS package com.google.cloud.tools:jib-maven-plugin:build -Djib.to.tags=latest,$image_version |
| 251 | + mvn $MAVEN_SKIP_ARGS package com.google.cloud.tools:jib-maven-plugin:build -Djib.to.tags=latest,$image_version |
0 commit comments