-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (34 loc) · 1.22 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
name: Build and test app
on:
push:
branches: [ '*' ]
jobs:
build-and-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
with:
# temurin LTS is pre-cached on runners
# https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Hosted-Tool-Cache
distribution: 'temurin'
java-version: '17'
# prevent supply chain attacks from replacing our gradle with malicious code
# https://github.com/gradle/wrapper-validation-action#readme
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
# configure gradle to track dependency info for GitHub Dependency Graph API
# Submission is left to other job, due to (rightfully!) missing write permissions if branch is contributed
# from "foreign" repo, see submit-dependency-snapshot.yml
dependency-graph: generate
- name: Gradle check
run: ./gradlew check --no-daemon
- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: outputs
path: app/build/outputs