-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (39 loc) · 1.18 KB
/
pr_check.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
name: Pull Request Check
on: [ pull_request ]
jobs:
pull-request-check:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
# ==================== SETUPS ====================
- name: Checkout Codebase
uses: actions/checkout@v4
with:
node-version: '12.x'
- name: Setup Python
uses: actions/[email protected]
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
# ==================== BUILD ====================
- name: Cache Gradle Dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle
restore-keys: |
${{ runner.os }}-gradle
- name: Set gradle permissions
run: chmod +x gradlew
- name: Execute Gradle Build
run: ./gradlew build