Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 61 additions & 5 deletions .github/workflows/Crane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,72 @@ on:
paths:
- '.github/workflows/Crane.yaml'
- 'Crane/**'
workflow_dispatch:
concurrency:
group: crane-build-${{ github.ref }}
cancel-in-progress: true
env:
SAMPLE_PATH: Crane

jobs:
build:
uses: android/compose-samples/.github/workflows/build-sample.yml@main
with:
name: Crane
path: Crane
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Generate cache key
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Check spotless
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew spotlessCheck --stacktrace

- name: Check lint
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew lintDebug --stacktrace

- name: Build debug
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew assembleDebug --stacktrace

- name: Build release
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew assembleRelease --stacktrace

- name: Run local tests
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew testDebug --stacktrace

- name: Upload build outputs (APKs)
uses: actions/upload-artifact@v2
with:
name: build-outputs
path: ${{ env.SAMPLE_PATH }}/app/build/outputs

- name: Upload build reports
if: always()
uses: actions/upload-artifact@v2
with:
name: build-reports
path: ${{ env.SAMPLE_PATH }}/app/build/reports

test:
needs: build
Expand Down
63 changes: 59 additions & 4 deletions .github/workflows/JetNews.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,72 @@ on:
paths:
- '.github/workflows/JetNews.yaml'
- 'JetNews/**'
concurrency:
group: jetnews-build-${{ github.ref }}
cancel-in-progress: true
env:
SAMPLE_PATH: JetNews

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
uses: android/compose-samples/.github/workflows/build-sample.yml@main
with:
name: JetNews
path: JetNews

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Generate cache key
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Check spotless
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew spotlessCheck --stacktrace

- name: Check lint
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew lintDebug --stacktrace

- name: Build debug
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew assembleDebug --stacktrace

- name: Build release
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew assembleRelease --stacktrace

- name: Run local tests
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew testDebug --stacktrace

- name: Upload build outputs (APKs)
uses: actions/upload-artifact@v2
with:
name: build-outputs
path: ${{ env.SAMPLE_PATH }}/app/build/outputs

- name: Upload build reports
if: always()
uses: actions/upload-artifact@v2
with:
name: build-reports
path: ${{ env.SAMPLE_PATH }}/app/build/reports

androidTest:
needs: build
Expand Down
68 changes: 63 additions & 5 deletions .github/workflows/Jetcaster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,69 @@ on:
paths:
- '.github/workflows/Jetcaster.yaml'
- 'Jetcaster/**'
workflow_dispatch:
concurrency:
group: jetcaster-build-${{ github.ref }}
cancel-in-progress: true
env:
SAMPLE_PATH: Jetcaster

jobs:
build:
uses: android/compose-samples/.github/workflows/build-sample.yml@main
with:
name: Jetcaster
path: Jetcaster
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Generate cache key
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Check spotless
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew spotlessCheck --stacktrace

- name: Check lint
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew lintDebug --stacktrace

- name: Build debug
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew assembleDebug --stacktrace

- name: Build release
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew assembleRelease --stacktrace

- name: Run local tests
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew testDebug --stacktrace

- name: Upload build outputs (APKs)
uses: actions/upload-artifact@v2
with:
name: build-outputs
path: ${{ env.SAMPLE_PATH }}/app/build/outputs

- name: Upload build reports
if: always()
uses: actions/upload-artifact@v2
with:
name: build-reports
path: ${{ env.SAMPLE_PATH }}/app/build/reports
65 changes: 61 additions & 4 deletions .github/workflows/Jetchat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,72 @@ on:
paths:
- '.github/workflows/Jetchat.yaml'
- 'Jetchat/**'
concurrency:
group: jetchat-build-${{ github.ref }}
cancel-in-progress: true
env:
SAMPLE_PATH: Jetchat

jobs:
build:
uses: android/compose-samples/.github/workflows/build-sample.yml@main
with:
name: Jetchat
path: Jetchat
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Generate cache key
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Check spotless
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew spotlessCheck --stacktrace

- name: Check lint
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew lintDebug --stacktrace

- name: Build debug
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew assembleDebug --stacktrace

- name: Build release
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew assembleRelease --stacktrace

- name: Run local tests
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew testDebug --stacktrace

- name: Upload build outputs (APKs)
uses: actions/upload-artifact@v2
with:
name: build-outputs
path: ${{ env.SAMPLE_PATH }}/app/build/outputs

- name: Upload build reports
if: always()
uses: actions/upload-artifact@v2
with:
name: build-reports
path: ${{ env.SAMPLE_PATH }}/app/build/reports

test:
needs: build
Expand Down
67 changes: 63 additions & 4 deletions .github/workflows/Jetsnack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,69 @@ on:
paths:
- '.github/workflows/Jetsnack.yaml'
- 'Jetsnack/**'
concurrency:
group: jetsnack-build-${{ github.ref }}
cancel-in-progress: true
env:
SAMPLE_PATH: Jetsnack

jobs:
build:
uses: android/compose-samples/.github/workflows/build-sample.yml@main
with:
name: Jetsnack
path: Jetsnack
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Generate cache key
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Check spotless
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew spotlessCheck --stacktrace

- name: Check lint
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew lintDebug --stacktrace

- name: Build debug
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew assembleDebug --stacktrace

- name: Build release
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew assembleRelease --stacktrace

- name: Run local tests
working-directory: ${{ env.SAMPLE_PATH }}
run: ./gradlew testDebug --stacktrace

- name: Upload build outputs (APKs)
uses: actions/upload-artifact@v2
with:
name: build-outputs
path: ${{ env.SAMPLE_PATH }}/app/build/outputs

- name: Upload build reports
if: always()
uses: actions/upload-artifact@v2
with:
name: build-reports
path: ${{ env.SAMPLE_PATH }}/app/build/reports
Loading