Skip to content

Commit

Permalink
Added GitHub action for events versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Jul 2, 2022
1 parent 1a6f902 commit b83d55f
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/samples_events-versioning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Samples - EventStoreDB Stream Metadata

on:
# run it on push to the default repository branch
push:
branches: [main]
# run it during pull request
pull_request:

defaults:
run:
working-directory: samples/events-versioning

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/events-versioning

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

- name: Stop containers
if: always()
run: docker-compose down

0 comments on commit b83d55f

Please sign in to comment.