Skip to content

Commit b83d55f

Browse files
committed
Added GitHub action for events versioning
1 parent 1a6f902 commit b83d55f

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Samples - EventStoreDB Stream Metadata
2+
3+
on:
4+
# run it on push to the default repository branch
5+
push:
6+
branches: [main]
7+
# run it during pull request
8+
pull_request:
9+
10+
defaults:
11+
run:
12+
working-directory: samples/events-versioning
13+
14+
jobs:
15+
build-and-test-code:
16+
name: Build and test
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Check Out Repo
21+
uses: actions/checkout@v2
22+
23+
- name: Start containers
24+
run: docker-compose up -d
25+
26+
- name: Set up JDK 17
27+
uses: actions/setup-java@v2
28+
with:
29+
java-version: 17
30+
distribution: "adopt"
31+
cache: gradle
32+
33+
- uses: gradle/gradle-build-action@v2
34+
with:
35+
arguments: build
36+
gradle-version: wrapper
37+
build-root-directory: samples/events-versioning
38+
39+
- name: Archive test report
40+
uses: actions/upload-artifact@v2
41+
if: always()
42+
with:
43+
name: Test report
44+
path: ./samples/events-versioning/build/test-results/test
45+
46+
- name: Stop containers
47+
if: always()
48+
run: docker-compose down

0 commit comments

Comments
 (0)