[0.4.x] Change to responsive() layout #5147
Workflow file for this run
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
name: Build & test | |
on: | |
push: | |
branches: | |
- main | |
- release-0.4.x | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
# Skip build if head commit contains 'skip ci' | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/checkout@v3 | |
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: Unit Tests | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: testDebug --rerun | |
- name: Upload test results and reports | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-results | |
path: | | |
**/build/test-results/* | |
**/build/reports/* | |
**/out/* | |
compiletests: | |
# Skip build if head commit contains 'skip ci' | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
timeout-minutes: 50 | |
env: | |
TERM: dumb | |
steps: | |
- uses: actions/checkout@v3 | |
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: Compile tests | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: compileDebugAndroidTestSources | |
verify: | |
# Skip build if head commit contains 'skip ci' | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
timeout-minutes: 40 | |
steps: | |
- uses: actions/checkout@v3 | |
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: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Check GIT lfs images | |
run: | | |
./scripts/git-lfs-check.sh | |
- name: Metalava compatibility check | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: --stacktrace | |
metalavaCheckCompatibility metalavaCheckCompatibilityRelease | |
- name: Code analysis | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: --stacktrace | |
spotlessCheck | |
lintDebug | |
- name: Dependencies analysis | |
uses: gradle/gradle-build-action@v2 | |
if: ${{ false }} # Disabled until -android supported https://github.com/google/horologist/issues/1314 | |
with: | |
arguments: --stacktrace | |
projectHealth |