Skip to content

Commit

Permalink
Fix builds (#389)
Browse files Browse the repository at this point in the history
* Fix builds

* Fix bad javadocs
  • Loading branch information
slinkydeveloper authored Nov 7, 2024
1 parent 0d422b3 commit 0f20059
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [ 11 ]
java: [ 11, 17, 21 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
Expand All @@ -31,8 +31,7 @@ jobs:
uses: gradle/actions/wrapper-validation@v3

- name: Build with Gradle
# Javadoc 11 won't work with our Javadocs, they need 21
run: ./gradlew build -x javadoc
run: ./gradlew build

- name: Upload test results
if: always()
Expand All @@ -42,7 +41,7 @@ jobs:
path: "**/test-results/test/*.xml"

test-javadocs:
name: Test Javadocs
name: Test Javadocs and dokka
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,16 @@ public class ManualRestateRunner
}
}

/** Run restate, run the embedded service endpoint server, and register the services. */
public void start() {}

/**
* @deprecated Use {@link #start()} instead.
*/
@Deprecated(forRemoval = true)
public void run() {
this.start();
}

/** Run restate, run the embedded service endpoint server, and register the services. */
public void start() {
// Start listening the local server
try {
server.listen(0).toCompletionStage().toCompletableFuture().get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
/**
* Restate runner for JUnit 5. Example:
*
* <pre>{@code
* @RegisterExtension
* <pre>
* {@code @RegisterExtension}
* private final static RestateRunner restateRunner = RestateRunnerBuilder.create()
* .withService(new MyService())
* .buildRunner();
* }</pre>
* </pre>
*
* <p>The runner will deploy the services locally, execute Restate as container using <a
* href="https://java.testcontainers.org/">Testcontainers</a>, and register the services.
Expand All @@ -30,15 +30,14 @@
* <p>Use the annotations {@link RestateClient}, {@link RestateURL} and {@link RestateAdminClient}
* to interact with the deployed server:
*
* <pre>{@code
* @Test
* void initialCountIsZero(@RestateClient Client client) {
* <pre>
* {@code @Test}
* void initialCountIsZero({@code @RestateClient} Client client) {
* var client = CounterClient.fromClient(ingressClient, "my-counter");
*
* // Use client as usual
* long response = client.get();
* assertThat(response).isEqualTo(0L);
* }
* }</pre>
*/
public class RestateRunner extends BaseRestateRunner implements BeforeAllCallback {
Expand All @@ -50,7 +49,7 @@ public class RestateRunner extends BaseRestateRunner implements BeforeAllCallbac

@Override
public void beforeAll(ExtensionContext context) {
deployer.run();
deployer.start();
context.getStore(NAMESPACE).put(DEPLOYER_KEY, deployer);
}
}

0 comments on commit 0f20059

Please sign in to comment.