-
Notifications
You must be signed in to change notification settings - Fork 3
executable file
·88 lines (67 loc) · 2.68 KB
/
push-tests.yaml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Run Tests
on:
push:
pull_request:
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Project Checkout
uses: actions/checkout@v2
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
- name: System Information
run: printf "\nKernel:\n " && uname -a && printf "\n\nMemory:\n " && free -h && printf "\n\nStorage:\n" && df -h && ls -la && pwd
- name: Build
run: ./gradlew build --stacktrace
- name: Run tests
run: ./gradlew test --stacktrace # testDebug or testRelease (if you have any)
- name: Unit tests results [antipiracy]
uses: actions/upload-artifact@v1
with:
name: test-report
path: antipiracy/build/reports/tests/testDebugUnitTest/
- name: Unit tests results [integrity]
uses: actions/upload-artifact@v1
with:
name: test-report
path: integrity/build/reports/tests/testDebugUnitTest/
- name: Unit tests results [rooting]
uses: actions/upload-artifact@v1
with:
name: test-report
path: rooting/build/reports/tests/testDebugUnitTest/
link:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Project Checkout
uses: actions/checkout@v2
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
- name: System Information
run: printf "\nKernel:\n " && uname -a && printf "\n\nMemory:\n " && free -h && printf "\n\nStorage:\n" && df -h && ls -la && pwd
- name: Build
run: ./gradlew build --stacktrace
- name: Lint
run: ./gradlew lint --stacktrace
- name: Lint results [antipiracy]
uses: actions/upload-artifact@v1
with:
name: lint-report
path: antipiracy/build/reports/
- name: Lint results [integrity]
uses: actions/upload-artifact@v1
with:
name: lint-report
path: integrity/build/reports/
- name: Lint results [rooting]
uses: actions/upload-artifact@v1
with:
name: lint-report
path: rooting/build/reports/