-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·46 lines (36 loc) · 1.33 KB
/
build-pull-request.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
name: Validate Pull Request
on:
pull_request
jobs:
build-project:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: "Run Docker Container of Databroker in detached mode"
run: docker run --pull=always --rm --publish 55556:55556/tcp --detach --name databroker ghcr.io/eclipse/kuksa.val/databroker:master --port 55556 --insecure
- name: Setup Project
uses: ./.github/actions/setup-project
- name: Run 'assembleDebug' with Gradle Wrapper
run: ./gradlew assembleDebug
- name: Run 'lint' with Gradle Wrapper
run: ./gradlew ktlintCheck detekt
- name: Upload Detekt Reports
uses: actions/upload-artifact@v3
with:
name: detekt-reports
path: ${{ github.workspace }}/build/reports/detekt
if-no-files-found: error
retention-days: 14
- name: Run 'test' with Gradle Wrapper
run: ./gradlew test -Dkotest.tags="!Secure"
- name: Upload Test Reports
uses: actions/upload-artifact@v3
with:
name: test-reports
path: ${{ github.workspace }}/**/reports/tests/*/
if-no-files-found: error
retention-days: 14
- name: "Stop Docker Container of Databroker"
if: always()
run: docker stop databroker