-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.22 KB
/
validate.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
50
51
52
53
54
55
56
57
58
name: Java SDK Validation
on:
pull_request:
branches: [ master ]
jobs:
validate:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [8, 11, 16, 17]
steps:
- id: checkout
name: Checkout repo
uses: actions/checkout@v3
- id: setup-jdk
name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- id: cache-gradle
name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- id: validate-wrapper
name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- id: executable-wrapper
name: Gradle Wrapper is made executable
run: |
chmod +x ./gradlew
- id: gradle-build
name: Build with Gradle
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_KEY: ${{ secrets.GPG_KEY }}
run: |
./gradlew build
- id: gradle-test
name: Test with Gradle
run: |
./gradlew test