-
Notifications
You must be signed in to change notification settings - Fork 59
51 lines (41 loc) · 1.15 KB
/
pull-request.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
51
name: Pull Request pipeline
on:
push:
branches: [ master ] # Triggers the workflow on push or pull request events but only for the master branch
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Build
run: ./gradlew assemble --stacktrace
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Run tests
run: ./gradlew testDebugUnitTest --stacktrace
- name: Upload Unit Test Reports
uses: actions/upload-artifact@v4
if: always()
with:
name: unit-test-report
path: ./**/build/reports/tests/testDebugUnitTest/**