Skip to content

Commit 9136e5f

Browse files
author
Shady Yehia Selim
committedMar 5, 2021
Initial commit
0 parents  commit 9136e5f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1550
-0
lines changed
 

‎.github/ci-gradle.properties

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
#
3+
# Copyright 2020 The Android Open Source Project
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
org.gradle.daemon=false
19+
org.gradle.parallel=true
20+
org.gradle.jvmargs=-Xmx5120m
21+
org.gradle.workers.max=2
22+
23+
kotlin.incremental=false
24+
kotlin.compiler.execution.strategy=in-process

‎.github/workflows/Check.yaml

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 30
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Copy CI gradle.properties
18+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
19+
20+
- name: Set up JDK 11
21+
uses: actions/setup-java@v1
22+
with:
23+
java-version: 11
24+
25+
- name: Build project
26+
run: ./gradlew spotlessCheck assembleDebug lintDebug --stacktrace
27+
28+
- name: Upload build outputs (APKs)
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: build-outputs
32+
path: app/build/outputs
33+
34+
- name: Upload build reports
35+
if: always()
36+
uses: actions/upload-artifact@v2
37+
with:
38+
name: build-reports
39+
path: app/build/reports
40+
41+
test:
42+
needs: build
43+
runs-on: macOS-latest # enables hardware acceleration in the virtual machine
44+
timeout-minutes: 30
45+
strategy:
46+
matrix:
47+
api-level: [23, 26, 29]
48+
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v2
52+
53+
- name: Copy CI gradle.properties
54+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
55+
56+
- name: Set up JDK 11
57+
uses: actions/setup-java@v1
58+
with:
59+
java-version: 11
60+
61+
- name: Run instrumentation tests
62+
uses: reactivecircus/android-emulator-runner@v2
63+
with:
64+
api-level: ${{ matrix.api-level }}
65+
arch: x86
66+
disable-animations: true
67+
script: ./gradlew connectedCheck --stacktrace
68+
69+
- name: Upload test reports
70+
if: always()
71+
uses: actions/upload-artifact@v2
72+
with:
73+
name: test-reports
74+
path: app/build/reports

0 commit comments

Comments
 (0)
Please sign in to comment.