-
Notifications
You must be signed in to change notification settings - Fork 150
50 lines (42 loc) · 1.12 KB
/
ExerciseSample.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
name: ExerciseSample
on:
push:
branches:
- main
paths:
- 'health-services/ExerciseSample/**'
- '.github/workflows/ExerciseSample.yml'
pull_request:
paths:
- 'health-services/ExerciseSample/**'
- '.github/workflows/ExerciseSample.yml'
env:
SAMPLE_PATH: health-services/ExerciseSample
jobs:
build:
# Skip build if head commit contains 'skip ci'
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- name: Checkout
uses: actions/checkout@v4
- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Unit Tests
uses: gradle/gradle-build-action@v3
with:
build-root-directory: ${{ env.SAMPLE_PATH }}
arguments: testDebug
- name: Upload test results and reports
if: always()
uses: actions/upload-artifact@v4
with:
name: build-results
path: |
**/build/test-results/*
**/build/reports/*
**/out/*