-
-
Notifications
You must be signed in to change notification settings - Fork 41
57 lines (46 loc) · 1.33 KB
/
samples_event-sourcing-esdb-simple.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Samples - Event Sourcing with Spring Boot and EventStoreDB
on:
# run it on push to the default repository branch
push:
branches: [main]
paths:
- "samples/event-sourcing-esdb-simple/**"
# run it during pull request
pull_request:
paths:
- "samples/event-sourcing-esdb-simple/**"
defaults:
run:
working-directory: samples/event-sourcing-esdb-simple
jobs:
build-and-test-code:
name: Build and test
runs-on: ubuntu-latest
strategy:
# define the test matrix
matrix:
java-version: [22]
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Start containers
run: docker-compose up -d
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: "adopt"
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build
- name: Archive test report
uses: actions/upload-artifact@v2
if: always()
with:
name: Test report
path: ./samples/event-sourcing-esdb-simple/build/test-results/test
- name: Stop containers
if: always()
run: docker-compose down