Skip to content

Ci/modernise actions - #12

Merged
ariesclark merged 20 commits into
mainfrom
ci/modernise-actions
Aug 9, 2026
Merged

Ci/modernise actions#12
ariesclark merged 20 commits into
mainfrom
ci/modernise-actions

Conversation

@ariesclark

Copy link
Copy Markdown
Member

No description provided.

CopilotAI lite review requested due to automatic review settings August 9, 2026 11:07

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the repository’s CI/release automation by removing the Node-based OpenAPI Generator CLI dependency and restructuring GitHub Actions workflows to generate, test, and publish the Java SDK using a dedicated generator setup action.

Changes:

  • Remove package.json / package-lock.json (drop vendored Node OpenAPI Generator CLI dependency).
  • Switch generate.sh from invoking node_modules/@openapitools/openapi-generator-cli to the openapi-generator executable.
  • Replace the previous Maven workflow and refactor .github/workflows/ci.yaml to include generate/test/publish jobs and add push/pull_request triggers.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
FileDescription
package.jsonRemoved Node dependency for OpenAPI Generator CLI.
package-lock.jsonRemoved lockfile since Node deps are no longer used.
openapitools.jsonRemoves schema path that depended on node_modules; keeps generator version pin.
generate.shUses openapi-generator on PATH instead of Node CLI.
.github/workflows/maven.ymlDeleted legacy Maven CI workflow.
.github/workflows/ci.yamlNew consolidated CI workflow with generate/test/publish and updated triggers/actions.
Suppressed comments (1)

.github/workflows/ci.yaml:41

  • ref: ${{ inputs.ref || github.ref }} will break on push/pull_request because the inputs context only exists for workflow_dispatch/workflow_call. Split this into two checkout steps so only the workflow_call path references inputs.ref.
 - uses: actions/checkout@v7
with:
repository: vrchatapi/vrchatapi-java
ref: ${{ inputs.ref || github.ref }}

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment threadgenerate.sh
rm src/main/java/io/github/vrchatapi/model -rf

./node_modules/\@openapitools/openapi-generator-cli/main.js generate \
openapi-generator generate \
Comment on lines +29 to +31
env:
PASSED_VERSION: ${{ (github.event_name == 'repository_dispatch' && github.event.client_payload || fromJSON(inputs.json || '{}'))['version'] }}
VERSION_POSTPEND: ${{ github.event_name == 'workflow_dispatch' && inputs.version_postfix || '' }}
@ariesclark
ariesclark merged commit a34258f into mainAug 9, 2026
9 checks passed
@ariesclark
ariesclark deleted the ci/modernise-actions branch August 9, 2026 11:27
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ariesclark