-
-
Notifications
You must be signed in to change notification settings - Fork 33
41 lines (34 loc) · 957 Bytes
/
pullrequest.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
name: Run Tests upon PullRequest
on:
pull_request:
branches:
- master
concurrency:
group: pullrequest-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Run Test Cases
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('**/buildSrc/src/main/kotlin/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Execute test cases
run: ./gradlew test
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports
path: ./*/build/reports/tests/