Merge pull request #38 from EventStore/tony-20240305 #63
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
name: Build CQRS Flow Java - Aggregates | |
on: | |
# run it on push to the default repository branch | |
push: | |
branches: [main] | |
# run it during pull request | |
pull_request: | |
defaults: | |
run: | |
working-directory: ./CQRS_Flow/Java/event-sourcing-esdb-aggregates | |
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: ./CQRS_Flow/Java/event-sourcing-esdb-aggregates | |
- name: Archive test report | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: Test report | |
path: ./CQRS_Flow/Java/event-sourcing-esdb-aggregates/build/test-results/test | |
- name: Stop containers | |
if: always() | |
run: docker-compose down |