-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (49 loc) · 1.67 KB
/
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
47
48
49
name: "Build and Test"
on:
pull_request:
permissions:
pull-requests: write
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
gradle-home-cache-cleanup: true
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
add-job-summary-as-pr-comment: on-failure
- name: Build with Gradle
run: ./gradlew build --console=plain --info --build-cache --configure-on-demand --configuration-cache --parallel
- uses: actions/upload-artifact@v4
name: 'Upload reports'
if: always()
with:
name: reports
path: ./build/reports
retention-days: 5
dependency-submission:
runs-on: ubuntu-latest
if: ${{ github.actor == 'silenium-dev' }}
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3
with:
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
- name: Perform dependency review
uses: actions/dependency-review-action@v3