This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
forked from flipperdevices/Flipper-Android-App
-
Notifications
You must be signed in to change notification settings - Fork 15
74 lines (72 loc) · 1.96 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Pull Request CI
on:
pull_request:
branches:
- 'dev'
merge_group:
jobs:
test:
name: "Run unit tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up JDK 1.11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Unit test
uses: gradle/gradle-build-action@v2
with:
arguments: testDebug
detekt:
name: "Check project by detekt"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up JDK 1.11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: detekt
uses: gradle/gradle-build-action@v2
with:
arguments: detekt
android_lint:
name: "Check project by android`s lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up JDK 1.11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Android lint
uses: gradle/gradle-build-action@v2
with:
arguments: lint
changelog_changes:
name: "Checking that changelog has changed"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Get change status for CHANGELOG.md
id: changed-changelog
uses: tj-actions/[email protected]
with:
files: CHANGELOG.md
- name: Failed if changelog not changed
if: steps.changed-changelog.outputs.any_changed != 'true'
uses: actions/github-script@v3
with:
script: core.setFailed('CHANGELOG.md has not changed! You need to write human-readable changes in each Pull Request')