generated from vk-education/common
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (66 loc) · 1.89 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
name: Pull Request CI
on:
pull_request:
paths-ignore:
- 'README.md'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ☕ Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: 🔐 Set up permission
run: chmod +x gradlew
- name: 🔨 Build debug
run: ./gradlew assembleDebug
- name: 🛠️ Unit-test
run: ./gradlew test
static_analysis:
runs-on: ubuntu-latest
steps:
- name: 🐕 Install reviewdog
run: sudo su -c 'wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ v0.10.2'
- uses: actions/checkout@v2
- uses: actions/cache@v2
name: ♻ Cache
with:
path: build/bin
key: ${{ runner.os }}
- name: 💚 Checkstyle
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./checkstyle
- name: 💙 Ktlint
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./ktlint
- name: 💜 Detekt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./detekt
check_aseemble:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ☕ Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: 🔐 Set up permission
run: chmod +x gradlew
- name: 🔨 Build internal release
run: ./gradlew assembleDebug
- name: 🔄 Upload debug apk
uses: actions/upload-artifact@v2
with:
name: App.apk
path: app/build/outputs/apk/debug/app-debug.apk
idea_cli_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: lionzxy/idea-cli-inspector-actions@v1
name: 💡 Check with IDEA CLI Inspector