Repository navigation
42 lines (39 loc) · 1.37 KB
/
Copy pathci.yml
File metadata and controls
42 lines (39 loc) · 1.37 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
name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
# `cache-provider: basic` is load-bearing, not a tuning knob. v6 moved the default caching
# implementation into `gradle-actions-caching`, a proprietary component governed by Gradle's
# commercial Terms of Use (https://blog.gradle.org/github-actions-for-gradle-v6); 'basic' is
# the open-source GitHub-Actions-cache implementation and keeps this repo off those terms.
# Don't drop this line to "take the default" — that silently opts into the commercial
# component. (v5 was the last fully-MIT line but is dead: v5.0.2, 2026-02, no security
# updates since.)
- uses: gradle/actions/setup-gradle@v6
with:
cache-provider: basic
- name: Unit tests
run: ./gradlew --no-daemon testDebugUnitTest
- name: Build debug APK
run: ./gradlew --no-daemon :app:assembleDebug
- name: Upload test APK
uses: actions/upload-artifact@v7
with:
name: pulseloop-debug-apk
path: app/build/outputs/apk/debug/*.apk
if-no-files-found: error
retention-days: 14