diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index b037f1e6..6a2dcced 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -49,7 +49,7 @@ jobs: # When adding a new example make sure it's listed here - name: Find and replace restateVersion in build.gradle.kts for java templates if: github.event.inputs.sdkJavaVersion != '' - run: for jvmDir in hello-world-http hello-world-lambda; do sed -i 's/val restateVersion = "[0-9A-Z.-]*"/val restateVersion = "${{ inputs.sdkJavaVersion }}"/' java/$jvmDir/build.gradle.kts; done + run: for jvmDir in hello-world-http hello-world-lambda food-ordering; do sed -i 's/val restateVersion = "[0-9A-Z.-]*"/val restateVersion = "${{ inputs.sdkJavaVersion }}"/' java/$jvmDir/build.gradle.kts; done - name: Find and replace restateVersion in build.gradle.kts for kotlin templates if: github.event.inputs.sdkJavaVersion != '' run: for jvmDir in hello-world-http hello-world-lambda; do sed -i 's/val restateVersion = "[0-9A-Z.-]*"/val restateVersion = "${{ inputs.sdkJavaVersion }}"/' kotlin/$jvmDir/build.gradle.kts; done @@ -67,6 +67,12 @@ jobs: with: arguments: check build-root-directory: java/hello-world-lambda + - name: Test java/food-ordering + if: github.event.inputs.sdkJavaVersion != '' + uses: gradle/gradle-build-action@v2 + with: + arguments: check + build-root-directory: java/food-ordering - name: Test kotlin/hello-world-http if: github.event.inputs.sdkJavaVersion != '' uses: gradle/gradle-build-action@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8847a5b..252de205 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,7 @@ jobs: typescript-lambda-greeter.zip java-hello-world-http.zip java-hello-world-lambda.zip + java-food-ordering.zip kotlin-hello-world-http.zip kotlin-hello-world-lambda.zip kotlin-hello-world-lambda-cdk.zip \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4239164b..4da3cb88 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,6 +35,11 @@ jobs: with: arguments: check build-root-directory: java/hello-world-lambda + - name: Test java/food-ordering + uses: gradle/gradle-build-action@v2 + with: + arguments: check + build-root-directory: java/food-ordering - name: Test kotlin/hello-world-http uses: gradle/gradle-build-action@v2 with: diff --git a/README.md b/README.md index 0c5db8d8..a09a55f6 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ wget https://github.com/restatedev/examples/releases/latest/download/typescript- ![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white) -[Food ordering](typescript/food-ordering): Integrate Restate with external services +[Food ordering - TypeScript](typescript/food-ordering): Integrate Restate with external services ```shell # Download the example wget https://github.com/restatedev/examples/releases/latest/download/typescript-food-ordering.zip && unzip typescript-food-ordering.zip -d typescript-food-ordering && rm typescript-food-ordering.zip @@ -76,6 +76,15 @@ wget https://github.com/restatedev/examples/releases/latest/download/typescript- wget https://github.com/restatedev/examples/releases/latest/download/typescript-ecommerce-store.zip && unzip typescript-ecommerce-store.zip -d typescript-ecommerce-store && rm typescript-ecommerce-store.zip ``` +![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white) + +[Food ordering - Java](java/food-ordering) +```shell +# Download the example +wget https://github.com/restatedev/examples/releases/latest/download/java-food-ordering.zip && unzip java-food-ordering.zip -d java-food-ordering && rm java-food-ordering.zip +``` + + ## Joining the community If you want to join the Restate community in order to stay up to date, then please join our [Discord](https://discord.gg/skW3AZ6uGd). diff --git a/scripts/prepare_release_zip.sh b/scripts/prepare_release_zip.sh index e6454ca3..e70d025e 100755 --- a/scripts/prepare_release_zip.sh +++ b/scripts/prepare_release_zip.sh @@ -18,6 +18,7 @@ create_release_zip() { create_release_zip java hello-world-http create_release_zip java hello-world-lambda +create_release_zip java food-ordering create_release_zip kotlin hello-world-http create_release_zip kotlin hello-world-lambda