Skip to content

Commit f4f61ba

Browse files
committed
Merge branch 'main' of github.com:hathora/cloud-sdk-java
2 parents 7156869 + 86d99d6 commit f4f61ba

File tree

662 files changed

+43034
-13880
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

662 files changed

+43034
-13880
lines changed

.classpath

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="bin/main" path="src/main/java">
4+
<attributes>
5+
<attribute name="gradle_scope" value="main"/>
6+
<attribute name="gradle_used_by_scope" value="main,test"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="bin/test" path="src/test/java">
10+
<attributes>
11+
<attribute name="gradle_scope" value="test"/>
12+
<attribute name="gradle_used_by_scope" value="test"/>
13+
<attribute name="test" value="true"/>
14+
</attributes>
15+
</classpathentry>
16+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
17+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
18+
<classpathentry kind="output" path="bin/default"/>
19+
</classpath>
Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
11
name: Generate
22
permissions:
3-
checks: write
4-
contents: write
5-
pull-requests: write
6-
statuses: write
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
77
"on":
8-
workflow_dispatch:
9-
inputs:
10-
force:
11-
description: Force generation of SDKs
12-
type: boolean
13-
default: false
14-
schedule:
15-
- cron: 0 0 * * *
8+
workflow_dispatch:
9+
inputs:
10+
force:
11+
description: Force generation of SDKs
12+
type: boolean
13+
default: false
14+
schedule:
15+
- cron: 0 0 * * *
1616
jobs:
17-
generate:
18-
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14
19-
with:
20-
force: ${{ github.event.inputs.force }}
21-
languages: |
22-
- java
23-
mode: pr
24-
openapi_docs: |
25-
- https://hathora.dev/swagger.json
26-
speakeasy_version: latest
27-
secrets:
28-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
29-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
17+
generate:
18+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
19+
with:
20+
force: ${{ github.event.inputs.force }}
21+
mode: pr
22+
speakeasy_version: latest
23+
secrets:
24+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
25+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
name: Publish
22
"on":
3-
push:
4-
branches:
5-
- main
6-
paths:
7-
- RELEASES.md
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- RELEASES.md
88
jobs:
9-
publish:
10-
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14
11-
with:
12-
create_release: true
13-
secrets:
14-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
15-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
9+
publish:
10+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
11+
secrets:
12+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
13+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/test_java.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test Java SDK
2+
on:
3+
pull_request:
4+
branches:
5+
- "main"
6+
repository_dispatch:
7+
types: [create-pull-request]
8+
jobs:
9+
test:
10+
name: Test Java SDK
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Setup Java
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: "17"
18+
distribution: "temurin"
19+
- name: Setup Gradle
20+
uses: gradle/actions/setup-gradle@v3
21+
- name: Run Tests
22+
run: ./gradlew test
23+
env:
24+
HATHORA_DEV_TOKEN: ${{ secrets.HATHORA_DEV_TOKEN }}

.speakeasy/gen.lock

Lines changed: 546 additions & 347 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
speakeasyVersion: 1.322.3
2+
sources:
3+
java-source:
4+
sourceNamespace: java-source
5+
sourceRevisionDigest: sha256:e103fd95afb574cca7c81943217e0b27eb068485851a9aa4021e73774f7240d6
6+
sourceBlobDigest: sha256:440be8d203f83f7d2891a89d537408e67dfd8b0ae841d24a2ce5e47390e93d13
7+
tags:
8+
- latest
9+
- main
10+
targets:
11+
hathora-java:
12+
source: java-source
13+
sourceNamespace: java-source
14+
sourceRevisionDigest: sha256:e103fd95afb574cca7c81943217e0b27eb068485851a9aa4021e73774f7240d6
15+
sourceBlobDigest: sha256:440be8d203f83f7d2891a89d537408e67dfd8b0ae841d24a2ce5e47390e93d13
16+
outLocation: /github/workspace/repo
17+
workflow:
18+
workflowVersion: 1.0.0
19+
speakeasyVersion: latest
20+
sources:
21+
java-source:
22+
inputs:
23+
- location: https://hathora.dev/swagger.json
24+
registry:
25+
location: registry.speakeasyapi.dev/hathora/hathora/java-source
26+
targets:
27+
hathora-java:
28+
target: java
29+
source: java-source

.speakeasy/workflow.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
workflowVersion: 1.0.0
2+
speakeasyVersion: latest
3+
sources:
4+
java-source:
5+
inputs:
6+
- location: https://hathora.dev/swagger.json
7+
registry:
8+
location: registry.speakeasyapi.dev/hathora/hathora/java-source
9+
targets:
10+
hathora-java:
11+
target: java
12+
source: java-source

0 commit comments

Comments
 (0)