-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (33 loc) · 860 Bytes
/
pr.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
name: PR
on:
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Need the tags to build
submodules: true # Need the submodules to build
- name: Setup Python
uses: actions/setup-python@v5
- name: Run pre-commit
uses: pre-commit/[email protected]
build:
runs-on: ubuntu-latest
needs: pre-commit
steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Need the tags to build
submodules: true # Need the submodules to build
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: '17'
cache: 'gradle'
- name: Build app
run: ./gradlew build