-
Notifications
You must be signed in to change notification settings - Fork 11
57 lines (45 loc) · 1.3 KB
/
build-and-test.yaml
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: Build, and test
on:
push:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
java-version: '11'
java-package: jdk
distribution: corretto
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: Build
run: ./gradlew :eventuate-messaging-kafka-testcontainers:clean :eventuate-messaging-kafka-testcontainers:test --tests "io.eventuate.messaging.kafka.testcontainers.EventuateKafkaNativeClusterTest"
- name: Save test results
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-reports
path: |
**/build/reports
**/build/test-results
- name: get container logs
run: ./.github/workflows/print-container-logs.sh
if: ${{ always() }}
- name: Save container logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: container-logs
path: ~/container-logs
- name: Save test results
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-reports
path: |
**/build/reports
**/build/test-results