Skip to content

Commit

Permalink
Added GitHub action for distributed processes samples
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Jul 9, 2022
1 parent 60539d7 commit caabe41
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .github/workflows/samples_distributed-processes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Samples - EventStoreDB Events Versioning

on:
# run it on push to the default repository branch
push:
branches: [main]
paths:
- "samples/distributed-processes/**"
# run it during pull request
pull_request:
paths:
- "samples/distributed-processes/**"

defaults:
run:
working-directory: samples/distributed-processes

jobs:
build-and-test-code:
name: Build and test
runs-on: ubuntu-latest

steps:
- name: Check Out Repo
uses: actions/checkout@v2

- name: Start containers
run: docker-compose up -d

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: "adopt"
cache: gradle

- uses: gradle/gradle-build-action@v2
with:
arguments: build
gradle-version: wrapper
build-root-directory: samples/distributed-processes

- name: Archive test report
uses: actions/upload-artifact@v2
if: always()
with:
name: Test report
path: ./samples/distributed-processes/build/test-results/test

- name: Stop containers
if: always()
run: docker-compose down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ Shows how to handle unique constraint checks in an event-sources system. Explain
Read more in [How to ensure uniqueness in Event Sourcing](https://event-driven.io/en/uniqueness-in-event-sourcing/?utm_source=event_sourcing_jvm).

### [Distributed Processes](./samples/distributed-processes/)
Shows how to handle distibuted processes in Event Sourcing in practice. Explains various use cases, like:
Shows how to handle distributed processes in Event Sourcing in practice. Explains various use cases, like:
- batch processing,
- saga vs process managers,
- distributed processes in the single module and across boundaries,
Expand Down
Empty file modified samples/distributed-processes/gradlew
100644 → 100755
Empty file.

0 comments on commit caabe41

Please sign in to comment.