-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added GitHub action for distributed processes samples
- Loading branch information
1 parent
3a75d1d
commit f2f369a
Showing
4 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.