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: 5 additions & 61 deletions .github/workflows/Crane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,72 +11,16 @@ on:
paths:
- '.github/workflows/Crane.yaml'
- 'Crane/**'
concurrency:
group: crane-build-${{ github.ref }}
cancel-in-progress: true
workflow_dispatch:
env:
SAMPLE_PATH: Crane

jobs:
build:
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
uses: android/compose-samples/.github/workflows/build-sample.yml@main
with:
name: Crane
path: Crane

test:
needs: build
Expand Down
65 changes: 4 additions & 61 deletions .github/workflows/JetNews.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,72 +11,15 @@ 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

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
uses: android/compose-samples/.github/workflows/build-sample.yml@main
with:
name: JetNews
path: JetNews

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

jobs:
build:
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
uses: android/compose-samples/.github/workflows/build-sample.yml@main
with:
name: Jetcaster
path: Jetcaster
65 changes: 4 additions & 61 deletions .github/workflows/Jetchat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,72 +11,15 @@ on:
paths:
- '.github/workflows/Jetchat.yaml'
- 'Jetchat/**'
concurrency:
group: jetchat-build-${{ github.ref }}
cancel-in-progress: true
env:
SAMPLE_PATH: Jetchat

jobs:
build:
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
uses: android/compose-samples/.github/workflows/build-sample.yml@main
with:
name: Jetchat
path: Jetchat

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

jobs:
build:
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
uses: android/compose-samples/.github/workflows/build-sample.yml@main
with:
name: Jetsnack
path: Jetsnack
Loading