-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 993 Bytes
/
pr.yaml
File metadata and controls
38 lines (31 loc) · 993 Bytes
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
# This workflow will scan code, build and run tests for pull requests to main
name: Pull request
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
- name: Build with Gradle Wrapper
run: ./gradlew build
- name: Upload reports
if: failure()
uses: actions/upload-artifact@v7
with:
name: unit-test-report
path: |
*/build/reports
retention-days: 2