Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit b9f92a4

Browse files
Update and rename blueprints.yaml to build_test.yaml
1 parent 640acf7 commit b9f92a4

File tree

2 files changed

+61
-85
lines changed

2 files changed

+61
-85
lines changed

.github/workflows/blueprints.yaml

-85
This file was deleted.

.github/workflows/build_test.yaml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: testingcodelabs
2+
3+
on:
4+
push:
5+
branches:
6+
- starter_code
7+
- end_codelab_1
8+
- end_codelab_2
9+
- end_codelab_3
10+
pull_request:
11+
branches:
12+
- starter_code
13+
- end_codelab_1
14+
- end_codelab_2
15+
- end_codelab_3
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 30
21+
strategy:
22+
matrix:
23+
api-level: [29]
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Enable KVM group perms
29+
run: |
30+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
31+
sudo udevadm control --reload-rules
32+
sudo udevadm trigger --name-match=kvm
33+
ls /dev/kvm
34+
35+
- name: Set Up JDK
36+
uses: actions/setup-java@v4
37+
with:
38+
distribution: 'zulu' # See 'Supported distributions' for available options
39+
java-version: '17'
40+
cache: 'gradle'
41+
42+
- name: Setup Gradle
43+
uses: gradle/actions/setup-gradle@v4
44+
45+
- name: Setup Android SDK
46+
uses: android-actions/setup-android@v3
47+
48+
- name: Run instrumentation tests
49+
uses: reactivecircus/android-emulator-runner@v2
50+
with:
51+
api-level: ${{ matrix.api-level }}
52+
arch: x86
53+
disable-animations: true
54+
script: ./gradlew connectedCheck --stacktrace
55+
56+
- name: Upload test reports
57+
if: always()
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: test-reports-${{ matrix.api-level }}
61+
path: ./app/build/reports/androidTests

0 commit comments

Comments
 (0)