-
Notifications
You must be signed in to change notification settings - Fork 143
43 lines (36 loc) · 1.14 KB
/
android.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
name: Android CI
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- uses: burrunan/gradle-cache-action@v1
name: Cache gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Detekt Code Style
continue-on-error: true
run: ./gradlew clean detekt
- name: Upload SARIF to Github using the upload-sarif action
continue-on-error: true
uses: github/codeql-action/upload-sarif@v2
if: success() || failure()
with:
sarif_file: ${{ github.workspace }}/app/build/reports/detekt/detekt.sarif
checkout_path: ${{ github.workspace }}
- name: Dev support
env:
WORKSPACE: ${{ github.workspace }}
run: |
cp $WORKSPACE/gradle/dev/FxComposeSimple.kt $WORKSPACE/app/src/main/java/com/petterp/floatingx/app/kotlin/FxComposeSimple.kt
- name: Build with Gradle
run: ./gradlew assembleRelease -PisPublish=true