-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.16 KB
/
Copy pathci.yml
File metadata and controls
51 lines (41 loc) · 1.16 KB
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
name: CI
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
permissions:
contents: read
defaults:
run:
working-directory: Rannah
jobs:
build:
name: Unit tests, lint and debug build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Unit tests
run: ./gradlew testDebugUnitTest --no-daemon
- name: Android Lint
run: ./gradlew lintDebug --no-daemon
- name: Debug build
run: ./gradlew assembleDebug --no-daemon
# The release variant is where minification and resource shrinking run,
# so it is the one that catches a missing ProGuard keep rule. It
# assembles unsigned here: the signing key lives outside the repository.
- name: Release build
run: ./gradlew assembleRelease --no-daemon
- name: Upload reports on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: reports
path: |
Rannah/app/build/reports/
retention-days: 7