-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/dev-2.x' into ddr_connecti_realay
- Loading branch information
Showing
4,045 changed files
with
41,641 additions
and
26,463 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
- name: Run tests | ||
run: mvn --batch-mode test -P prettierSkip | ||
run: mvn $MAVEN_ARGS test -P prettierSkip | ||
|
||
docs: | ||
if: github.repository_owner == 'opentripplanner' | ||
|
@@ -89,7 +102,7 @@ jobs: | |
LOCAL_BRANCH: local-pages | ||
REMOTE_BRANCH: main | ||
TOKEN: ${{ secrets.CHANGELOG_TOKEN }} | ||
MASTER_BRANCH_VERSION: 2.5.0 | ||
MASTER_BRANCH_VERSION: 2.6.0 | ||
|
||
steps: | ||
|
||
|
@@ -121,7 +134,7 @@ jobs: | |
|
||
- name: Build GTFS GraphQL API documentation | ||
run: | | ||
npm install -g @magidoc/cli@6.0.0 | ||
npm install -g @magidoc/cli@6.1.0 | ||
magidoc generate --stacktrace | ||
- name: Deploy compiled HTML to Github pages | ||
|
@@ -154,7 +167,7 @@ jobs: | |
# schema hasn't changed. | ||
# example commit: https://github.com/opentripplanner/docs/commit/45e6ddf8e4a4 | ||
SCHEMA_FILE_MODIFIED=`git log -n 1 --pretty=format:%ct src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls` | ||
SCHEMA_FILE_MODIFIED=`git log -n 1 --pretty=format:%ct application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls` | ||
echo "schema modified at ${SCHEMA_FILE_MODIFIED}" | ||
git checkout $LOCAL_BRANCH | ||
DOCS_MODIFIED=`git log -n 1 --pretty=format:%ct api/dev-2.x/graphql-gtfs/introduction.html` | ||
|
@@ -179,9 +192,9 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
node-version: 22 | ||
- name: Run code generator | ||
working-directory: src/main/java/org/opentripplanner/apis/gtfs/generated | ||
working-directory: application/src/main/java/org/opentripplanner/apis/gtfs/generated | ||
run: | | ||
yarn install | ||
yarn generate | ||
|
@@ -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') | ||
|
@@ -235,4 +248,6 @@ jobs: | |
echo "Maven version ${version_with_snapshot} contains SNAPSHOT, adding date to container image tag" | ||
fi | ||
mvn --batch-mode -P prettierSkip compile com.google.cloud.tools:jib-maven-plugin:build -Djib.to.tags=latest,$image_version | ||
MAVEN_SKIP_ARGS="-P prettierSkip -Dmaven.test.skip=true -Dmaven.source.skip=true" | ||
mvn $MAVEN_ARGS $MAVEN_SKIP_ARGS package com.google.cloud.tools:jib-maven-plugin:build -Djib.to.tags=latest,$image_version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.