Skip to content

Commit 8bec063

Browse files
Use check for unused variables in CI
1 parent 8a15709 commit 8bec063

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/cibuild.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ on:
1515
- dev-1.x
1616
- dev-2.x
1717
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
2119
MAVEN_ARGS: "--no-transfer-progress -Dstyle.color=always"
2220

2321
jobs:
@@ -52,8 +50,8 @@ jobs:
5250
# https://github.com/actions/runner-images/issues/1499
5351
# we set nodePath and npmPath to skip downloading the node binary, which frequently times out
5452
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
5755
5856
- name: Send coverage data to codecov.io
5957
if: github.repository_owner == 'opentripplanner'
@@ -74,7 +72,7 @@ jobs:
7472
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev-1.x' || github.ref == 'refs/heads/dev-2.x')
7573
env:
7674
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
7876

7977
build-windows:
8078
timeout-minutes: 20
@@ -92,7 +90,7 @@ jobs:
9290
- name: Configure Windows Pagefile
9391
uses: al-cheb/configure-pagefile-action@v1.4
9492
- name: Run tests
95-
run: mvn $MAVEN_ARGS test -P prettierSkip
93+
run: mvn test -P prettierSkip
9694

9795
docs:
9896
if: github.repository_owner == 'opentripplanner'
@@ -205,7 +203,7 @@ jobs:
205203
distribution: temurin
206204
cache: maven
207205
- name: Compile Java code
208-
run: mvn $MAVEN_ARGS compile -DskipTests -P prettierSkip
206+
run: mvn compile -DskipTests -P prettierSkip
209207

210208
container-image:
211209
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:
250248
251249
MAVEN_SKIP_ARGS="-P prettierSkip -Dmaven.test.skip=true -Dmaven.source.skip=true"
252250
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

Comments
 (0)