Skip to content

Commit

Permalink
Add food ordering to zip creation
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed Jan 12, 2024
1 parent af65436 commit 1aa6e00
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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).
Expand Down
1 change: 1 addition & 0 deletions scripts/prepare_release_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1aa6e00

Please sign in to comment.