-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (42 loc) · 1.18 KB
/
pull_request_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
50
51
52
53
54
name: Check Pull Request
on:
pull_request:
branches:
- stable
- dev
paths:
- '**/*.kt'
- '**/*.kts'
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/setup-java-jdk
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
# https://github.com/marketplace/actions/build-with-gradle
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build artifacts
run: ./gradlew shadowJar
detekt:
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/setup-java-jdk
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
# https://github.com/marketplace/actions/build-with-gradle
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run Detekt
run: ./gradlew detekt