Skip to content

Commit 4413ef8

Browse files
committed
Migrates CI to GHA
1 parent a6156ad commit 4413ef8

File tree

4 files changed

+102
-112
lines changed

4 files changed

+102
-112
lines changed

.circleci/config.yml

Lines changed: 0 additions & 92 deletions
This file was deleted.

.github/ci-gradle.properties

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

.github/workflows/blueprints.yaml

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

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)