File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments