forked from google/horologist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from luizgrp/update_main
Update main
- Loading branch information
Showing
2,154 changed files
with
125,974 additions
and
3,205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
**/test/snapshots/** filter=lfs diff=lfs merge=lfs -text | ||
**/figma/** filter=lfs diff=lfs merge=lfs -text | ||
*.mp4 filter=lfs diff=lfs merge=lfs -text | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#### WHAT | ||
|
||
|
||
#### WHY | ||
|
||
|
||
#### HOW | ||
|
||
|
||
#### Checklist :clipboard: | ||
- [ ] Add explicit visibility modifier and explicit return types for public declarations | ||
- [ ] Run spotless check | ||
- [ ] Run tests | ||
- [ ] Update metalava's signature text files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Android Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: macos-latest | ||
timeout-minutes: 50 | ||
|
||
strategy: | ||
# Allow tests to continue on other devices if they fail on one device. | ||
fail-fast: false | ||
matrix: | ||
api-level: [ 30, 33 ] | ||
|
||
env: | ||
TERM: dumb | ||
|
||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
with: | ||
lfs: 'true' | ||
|
||
- name: Install pulseaudio | ||
run: brew install pulseaudio | ||
|
||
- name: Copy CI gradle.properties | ||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | ||
|
||
- name: set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Run tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: ${{ matrix.api-level }} | ||
target: android-wear | ||
profile: wearos_large_round | ||
channel: beta | ||
arch: ${{ matrix.api-level == 33 && 'x86_64' || 'x86' }} | ||
emulator-options: -no-window -no-snapshot | ||
script: ./gradlew connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=Microbenchmark -x media:benchmark:connectedDebugAndroidTest | ||
|
||
- name: Upload logs | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: logs-${{ matrix.api-level }}-${{ matrix.shard }} | ||
path: logcat.txt | ||
|
||
- name: Upload test results | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results-${{ matrix.api-level }}-${{ matrix.shard }} | ||
path: | | ||
**/build/reports/* | ||
**/build/outputs/*/connected/* | ||
**/out/failures/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Build & test (nightly release) | ||
|
||
on: | ||
schedule: | ||
- cron: '0 2 * * *' # 2am UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 40 | ||
|
||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
with: | ||
lfs: 'true' | ||
|
||
- name: Copy CI gradle.properties | ||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | ||
|
||
- name: set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Generate cache key | ||
run: ./checksum.sh checksum.txt | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches/modules-* | ||
~/.gradle/caches/jars-* | ||
~/.gradle/caches/build-cache-* | ||
key: gradle-${{ hashFiles('checksum.txt') }} | ||
|
||
- name: Build (Release) | ||
run: | | ||
./gradlew --scan --stacktrace \ | ||
assembleRelease | ||
- name: Code analysis | ||
run: | | ||
./gradlew --scan --stacktrace \ | ||
lintRelease | ||
- name: Upload test results and reports | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-results | ||
path: | | ||
**/build/test-results/* | ||
**/build/reports/* | ||
- name: Upload apks | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: apks | ||
path: | | ||
**/build/outputs/apk/release/*.apk |
Oops, something went wrong.