From fff76ede8999da8f3eac9f53275bf00c4780d6d4 Mon Sep 17 00:00:00 2001 From: Chiko Shimizu Date: Fri, 14 Jun 2024 11:15:33 +0900 Subject: [PATCH 1/7] Update actions on pull requests to build only the sample app that the pull request is changing, instead of building all sample apps in the repository --- .github/workflows/JetStreamCompose.yml | 19 +++++ .github/workflows/TvMaterialCatalog.yml | 19 +++++ .github/workflows/android.yml | 43 ------------ .../build-sample-without-format-check.yml | 68 ++++++++++++++++++ .github/workflows/build-sample.yml | 70 +++++++++++++++++++ 5 files changed, 176 insertions(+), 43 deletions(-) create mode 100644 .github/workflows/JetStreamCompose.yml create mode 100644 .github/workflows/TvMaterialCatalog.yml delete mode 100644 .github/workflows/android.yml create mode 100644 .github/workflows/build-sample-without-format-check.yml create mode 100644 .github/workflows/build-sample.yml diff --git a/.github/workflows/JetStreamCompose.yml b/.github/workflows/JetStreamCompose.yml new file mode 100644 index 00000000..3da2d5f4 --- /dev/null +++ b/.github/workflows/JetStreamCompose.yml @@ -0,0 +1,19 @@ +name: JetStreamCompose + +on: + push: + branches: + - main + paths: + - '.github/workflows/JetStreamCompose.yml' + - 'JetStreamCompose/**' + pull_request: + paths: + - '.github/workflows/JetStreamCompose.yml' + - 'JetStreamCompose/**' + +jobs: + build: + uses: ./.github/workflows/build-sample.yml + with: + path: JetStreamCompose \ No newline at end of file diff --git a/.github/workflows/TvMaterialCatalog.yml b/.github/workflows/TvMaterialCatalog.yml new file mode 100644 index 00000000..caf7cdaa --- /dev/null +++ b/.github/workflows/TvMaterialCatalog.yml @@ -0,0 +1,19 @@ +name: TvMaterialCatalog + +on: + push: + branches: + - main + paths: + - '.github/workflows/TvMaterialCatalog.yml' + - 'TvMaterialCatalog/**' + pull_request: + paths: + - '.github/workflows/TvMaterialCatalog.yml' + - 'TvMaterialCatalog/**' + +jobs: + build: + uses: ./.github/workflows/build-sample-without-format-check.yml + with: + path: TvMaterialCatalog \ No newline at end of file diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml deleted file mode 100644 index 079eaad1..00000000 --- a/.github/workflows/android.yml +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright (C) 2020 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: Android CI - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - - build: - name: Build - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Build project - run: .github/scripts/gradlew_recursive.sh assembleDebug - - name: Zip artifacts - run: zip -r assemble.zip . -i '**/build/*.apk' '**/build/*.aab' '**/build/*.aar' '**/build/*.so' - - name: Upload artifacts - uses: actions/upload-artifact@v1 - with: - name: assemble - path: assemble.zip diff --git a/.github/workflows/build-sample-without-format-check.yml b/.github/workflows/build-sample-without-format-check.yml new file mode 100644 index 00000000..e778099c --- /dev/null +++ b/.github/workflows/build-sample-without-format-check.yml @@ -0,0 +1,68 @@ +# Copyright (C) 2024 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Build sample(legacy) +# This action is for the sample app wihtout buildscript/init.gradle.kts +# This action will be removed once all sample app has the kts file + +on: + workflow_call: + inputs: + path: + required: true + type: string + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: "zulu" + + - name: Check lint + working-directory: ${{ inputs.path }} + run: ./gradlew lintDebug --stacktrace + + - name: Build debug + working-directory: ${{ inputs.path }} + run: ./gradlew assembleDebug --stacktrace + + - name: Build release + working-directory: ${{ inputs.path }} + run: ./gradlew assembleRelease --stacktrace + + - name: Run local tests + working-directory: ${{ inputs.path }} + run: ./gradlew testDebug --stacktrace + + - name: Upload build outputs (APKs) + uses: actions/upload-artifact@v3 + with: + name: build-outputs + path: ${{ inputs.path }}/app/build/outputs + + - name: Upload build reports + if: always() + uses: actions/upload-artifact@v3 + with: + name: build-reports + path: ${{ inputs.path }}/app/build/reports \ No newline at end of file diff --git a/.github/workflows/build-sample.yml b/.github/workflows/build-sample.yml new file mode 100644 index 00000000..0c9d6fae --- /dev/null +++ b/.github/workflows/build-sample.yml @@ -0,0 +1,70 @@ +# Copyright (C) 2024 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Build sample + +on: + workflow_call: + inputs: + path: + required: true + type: string + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: "zulu" + + - name: Check formatting + working-directory: ${{ inputs.path }} + run: ./gradlew --init-script buildscripts/init.gradle.kts spotlessCheck --stacktrace + + - name: Check lint + working-directory: ${{ inputs.path }} + run: ./gradlew lintDebug --stacktrace + + - name: Build debug + working-directory: ${{ inputs.path }} + run: ./gradlew assembleDebug --stacktrace + + - name: Build release + working-directory: ${{ inputs.path }} + run: ./gradlew assembleRelease --stacktrace + + - name: Run local tests + working-directory: ${{ inputs.path }} + run: ./gradlew testDebug --stacktrace + + - name: Upload build outputs (APKs) + uses: actions/upload-artifact@v3 + with: + name: build-outputs + path: ${{ inputs.path }}/app/build/outputs + + - name: Upload build reports + if: always() + uses: actions/upload-artifact@v3 + with: + name: build-reports + path: ${{ inputs.path }}/app/build/reports \ No newline at end of file From 526cadc19a8939bdd9cde0e1be720c743d04a387 Mon Sep 17 00:00:00 2001 From: Chiko Shimizu Date: Fri, 14 Jun 2024 11:35:24 +0900 Subject: [PATCH 2/7] update the version of actions --- .github/workflows/build-sample-without-format-check.yml | 8 ++++---- .github/workflows/build-sample.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-sample-without-format-check.yml b/.github/workflows/build-sample-without-format-check.yml index e778099c..2cf16207 100644 --- a/.github/workflows/build-sample-without-format-check.yml +++ b/.github/workflows/build-sample-without-format-check.yml @@ -30,10 +30,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 distribution: "zulu" @@ -55,14 +55,14 @@ jobs: run: ./gradlew testDebug --stacktrace - name: Upload build outputs (APKs) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-outputs path: ${{ inputs.path }}/app/build/outputs - name: Upload build reports if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-reports path: ${{ inputs.path }}/app/build/reports \ No newline at end of file diff --git a/.github/workflows/build-sample.yml b/.github/workflows/build-sample.yml index 0c9d6fae..37968250 100644 --- a/.github/workflows/build-sample.yml +++ b/.github/workflows/build-sample.yml @@ -28,10 +28,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 distribution: "zulu" @@ -57,14 +57,14 @@ jobs: run: ./gradlew testDebug --stacktrace - name: Upload build outputs (APKs) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-outputs path: ${{ inputs.path }}/app/build/outputs - name: Upload build reports if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-reports path: ${{ inputs.path }}/app/build/reports \ No newline at end of file From 6eac44cae38cddddcf51de9f45342f6396c747a6 Mon Sep 17 00:00:00 2001 From: Chiko Shimizu Date: Fri, 14 Jun 2024 11:55:32 +0900 Subject: [PATCH 3/7] Introduce concurrency to actions --- .github/workflows/JetStreamCompose.yml | 1 + .github/workflows/TvMaterialCatalog.yml | 1 + .github/workflows/build-sample-without-format-check.yml | 7 +++++++ .github/workflows/build-sample.yml | 7 +++++++ 4 files changed, 16 insertions(+) diff --git a/.github/workflows/JetStreamCompose.yml b/.github/workflows/JetStreamCompose.yml index 3da2d5f4..f33969cf 100644 --- a/.github/workflows/JetStreamCompose.yml +++ b/.github/workflows/JetStreamCompose.yml @@ -16,4 +16,5 @@ jobs: build: uses: ./.github/workflows/build-sample.yml with: + name: JetStreamCompose path: JetStreamCompose \ No newline at end of file diff --git a/.github/workflows/TvMaterialCatalog.yml b/.github/workflows/TvMaterialCatalog.yml index caf7cdaa..3c6dff9e 100644 --- a/.github/workflows/TvMaterialCatalog.yml +++ b/.github/workflows/TvMaterialCatalog.yml @@ -16,4 +16,5 @@ jobs: build: uses: ./.github/workflows/build-sample-without-format-check.yml with: + name: TvMaterialCatalog path: TvMaterialCatalog \ No newline at end of file diff --git a/.github/workflows/build-sample-without-format-check.yml b/.github/workflows/build-sample-without-format-check.yml index 2cf16207..c602bf90 100644 --- a/.github/workflows/build-sample-without-format-check.yml +++ b/.github/workflows/build-sample-without-format-check.yml @@ -19,10 +19,17 @@ name: Build sample(legacy) on: workflow_call: inputs: + name: + required: true + type: string path: required: true type: string +concurrency: + group: ${{ inputs.name }}-build-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Build diff --git a/.github/workflows/build-sample.yml b/.github/workflows/build-sample.yml index 37968250..b01d5ff1 100644 --- a/.github/workflows/build-sample.yml +++ b/.github/workflows/build-sample.yml @@ -17,10 +17,17 @@ name: Build sample on: workflow_call: inputs: + name: + required: true + type: string path: required: true type: string +concurrency: + group: ${{ inputs.name }}-build-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Build From 29c72ecd5829183a184b1fd571747d828ea03778 Mon Sep 17 00:00:00 2001 From: Chiko Shimizu Date: Fri, 14 Jun 2024 12:09:49 +0900 Subject: [PATCH 4/7] Introduce actions/cache --- .../build-sample-without-format-check.yml | 11 +++++ .github/workflows/build-sample.yml | 11 +++++ scripts/checksum.sh | 40 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100755 scripts/checksum.sh diff --git a/.github/workflows/build-sample-without-format-check.yml b/.github/workflows/build-sample-without-format-check.yml index c602bf90..674870d0 100644 --- a/.github/workflows/build-sample-without-format-check.yml +++ b/.github/workflows/build-sample-without-format-check.yml @@ -45,6 +45,17 @@ jobs: java-version: 17 distribution: "zulu" + - name: Generate cache key + run: ./scripts/checksum.sh ${{ inputs.path }} checksum.txt + + - uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches/modules-* + ~/.gradle/caches/jars-* + ~/.gradle/caches/build-cache-* + key: gradle-${{ hashFiles('checksum.txt') }} + - name: Check lint working-directory: ${{ inputs.path }} run: ./gradlew lintDebug --stacktrace diff --git a/.github/workflows/build-sample.yml b/.github/workflows/build-sample.yml index b01d5ff1..a6c7b951 100644 --- a/.github/workflows/build-sample.yml +++ b/.github/workflows/build-sample.yml @@ -43,6 +43,17 @@ jobs: java-version: 17 distribution: "zulu" + - name: Generate cache key + run: ./scripts/checksum.sh ${{ inputs.path }} checksum.txt + + - uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches/modules-* + ~/.gradle/caches/jars-* + ~/.gradle/caches/build-cache-* + key: gradle-${{ hashFiles('checksum.txt') }} + - name: Check formatting working-directory: ${{ inputs.path }} run: ./gradlew --init-script buildscripts/init.gradle.kts spotlessCheck --stacktrace diff --git a/scripts/checksum.sh b/scripts/checksum.sh new file mode 100755 index 00000000..bc8732f5 --- /dev/null +++ b/scripts/checksum.sh @@ -0,0 +1,40 @@ +# +# Copyright 2022 Google, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +#!/bin/bash +SAMPLE=$1 +RESULT_FILE=$2 + +if [ -f $RESULT_FILE ]; then + rm $RESULT_FILE +fi +touch $RESULT_FILE + +checksum_file() { + echo $(openssl md5 $1 | awk '{print $2}') +} + +FILES=() +while read -r -d ''; do + FILES+=("$REPLY") +done < <(find $SAMPLE -type f \( -name "build.gradle*" -o -name "gradle-wrapper.properties" -o -name "robolectric.properties" \) -print0) + +# Loop through files and append MD5 to result file +for FILE in ${FILES[@]}; do + echo $(checksum_file $FILE) >> $RESULT_FILE +done +# Now sort the file so that it is idempotent +sort $RESULT_FILE -o $RESULT_FILE From 3417a3b29e9ab6f8e29686035d1ee71278d9a1d5 Mon Sep 17 00:00:00 2001 From: Chiko Shimizu Date: Fri, 14 Jun 2024 12:19:18 +0900 Subject: [PATCH 5/7] Enable manually running flows --- .github/workflows/JetStreamCompose.yml | 1 + .github/workflows/TvMaterialCatalog.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/JetStreamCompose.yml b/.github/workflows/JetStreamCompose.yml index f33969cf..9d592fb7 100644 --- a/.github/workflows/JetStreamCompose.yml +++ b/.github/workflows/JetStreamCompose.yml @@ -11,6 +11,7 @@ on: paths: - '.github/workflows/JetStreamCompose.yml' - 'JetStreamCompose/**' + workflow_dispatch: jobs: build: diff --git a/.github/workflows/TvMaterialCatalog.yml b/.github/workflows/TvMaterialCatalog.yml index 3c6dff9e..d2785fe5 100644 --- a/.github/workflows/TvMaterialCatalog.yml +++ b/.github/workflows/TvMaterialCatalog.yml @@ -11,6 +11,7 @@ on: paths: - '.github/workflows/TvMaterialCatalog.yml' - 'TvMaterialCatalog/**' + workflow_dispatch: jobs: build: From b1f57edc753bac62e624fc6bb063f81ef7f497f4 Mon Sep 17 00:00:00 2001 From: Chiko Shimizu Date: Fri, 14 Jun 2024 12:41:56 +0900 Subject: [PATCH 6/7] add workflows for Leanback based sample apps --- .github/workflows/AccessibilityDemo.yml | 21 +++++++++++++++++++++ .github/workflows/ClassicsKotlin.yml | 21 +++++++++++++++++++++ .github/workflows/Leanback.yml | 21 +++++++++++++++++++++ .github/workflows/LeanbackShowcase.yml | 21 +++++++++++++++++++++ .github/workflows/ReferenceAppKotlin.yml | 21 +++++++++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 .github/workflows/AccessibilityDemo.yml create mode 100644 .github/workflows/ClassicsKotlin.yml create mode 100644 .github/workflows/Leanback.yml create mode 100644 .github/workflows/LeanbackShowcase.yml create mode 100644 .github/workflows/ReferenceAppKotlin.yml diff --git a/.github/workflows/AccessibilityDemo.yml b/.github/workflows/AccessibilityDemo.yml new file mode 100644 index 00000000..a4cb4eae --- /dev/null +++ b/.github/workflows/AccessibilityDemo.yml @@ -0,0 +1,21 @@ +name: AccessibilityDemo + +on: + push: + branches: + - main + paths: + - '.github/workflows/AccessibilityDemo.yml' + - 'AccessibilityDemo/**' + pull_request: + paths: + - '.github/workflows/AccessibilityDemo.yml' + - 'AccessibilityDemo/**' + workflow_dispatch: + +jobs: + build: + uses: ./.github/workflows/build-sample-without-format-check.yml + with: + name: AccessibilityDemo + path: AccessibilityDemo \ No newline at end of file diff --git a/.github/workflows/ClassicsKotlin.yml b/.github/workflows/ClassicsKotlin.yml new file mode 100644 index 00000000..9a8ef062 --- /dev/null +++ b/.github/workflows/ClassicsKotlin.yml @@ -0,0 +1,21 @@ +name: ClassicsKotlin + +on: + push: + branches: + - main + paths: + - '.github/workflows/ClassicsKotlin.yml' + - 'ClassicsKotlin/**' + pull_request: + paths: + - '.github/workflows/ClassicsKotlin.yml' + - 'ClassicsKotlin/**' + workflow_dispatch: + +jobs: + build: + uses: ./.github/workflows/build-sample-without-format-check.yml + with: + name: ClassicsKotlin + path: ClassicsKotlin \ No newline at end of file diff --git a/.github/workflows/Leanback.yml b/.github/workflows/Leanback.yml new file mode 100644 index 00000000..c36ed1e7 --- /dev/null +++ b/.github/workflows/Leanback.yml @@ -0,0 +1,21 @@ +name: Leanback + +on: + push: + branches: + - main + paths: + - '.github/workflows/Leanback.yml' + - 'Leanback/**' + pull_request: + paths: + - '.github/workflows/Leanback.yml' + - 'Leanback/**' + workflow_dispatch: + +jobs: + build: + uses: ./.github/workflows/build-sample-without-format-check.yml + with: + name: Leanback + path: Leanback \ No newline at end of file diff --git a/.github/workflows/LeanbackShowcase.yml b/.github/workflows/LeanbackShowcase.yml new file mode 100644 index 00000000..8b0f56ce --- /dev/null +++ b/.github/workflows/LeanbackShowcase.yml @@ -0,0 +1,21 @@ +name: LeanbackShowcase + +on: + push: + branches: + - main + paths: + - '.github/workflows/LeanbackShowcase.yml' + - 'LeanbackShowcase/**' + pull_request: + paths: + - '.github/workflows/LeanbackShowcase.yml' + - 'LeanbackShowcase/**' + workflow_dispatch: + +jobs: + build: + uses: ./.github/workflows/build-sample-without-format-check.yml + with: + name: LeanbackShowcase + path: LeanbackShowcase \ No newline at end of file diff --git a/.github/workflows/ReferenceAppKotlin.yml b/.github/workflows/ReferenceAppKotlin.yml new file mode 100644 index 00000000..c04e823b --- /dev/null +++ b/.github/workflows/ReferenceAppKotlin.yml @@ -0,0 +1,21 @@ +name: ReferenceAppKotlin + +on: + push: + branches: + - main + paths: + - '.github/workflows/ReferenceAppKotlin.yml' + - 'ReferenceAppKotlin/**' + pull_request: + paths: + - '.github/workflows/ReferenceAppKotlin.yml' + - 'ReferenceAppKotlin/**' + workflow_dispatch: + +jobs: + build: + uses: ./.github/workflows/build-sample-without-format-check.yml + with: + name: ReferenceAppKotlin + path: ReferenceAppKotlin \ No newline at end of file From 684442f3243ec40d9524a1cddd5954060803ead5 Mon Sep 17 00:00:00 2001 From: Chiko Shimizu Date: Tue, 18 Jun 2024 16:29:39 +0900 Subject: [PATCH 7/7] change the workflow for legacy sample codes to build apps without any check --- .github/workflows/ClassicsKotlin.yml | 2 +- .github/workflows/Leanback.yml | 2 +- .github/workflows/LeanbackShowcase.yml | 2 +- .github/workflows/ReferenceAppKotlin.yml | 2 +- .github/workflows/TvMaterialCatalog.yml | 2 +- ...ut-format-check.yml => build-sample-without-check.yml} | 8 -------- 6 files changed, 5 insertions(+), 13 deletions(-) rename .github/workflows/{build-sample-without-format-check.yml => build-sample-without-check.yml} (89%) diff --git a/.github/workflows/ClassicsKotlin.yml b/.github/workflows/ClassicsKotlin.yml index 9a8ef062..e90b653f 100644 --- a/.github/workflows/ClassicsKotlin.yml +++ b/.github/workflows/ClassicsKotlin.yml @@ -15,7 +15,7 @@ on: jobs: build: - uses: ./.github/workflows/build-sample-without-format-check.yml + uses: ./.github/workflows/build-sample-without-check.yml with: name: ClassicsKotlin path: ClassicsKotlin \ No newline at end of file diff --git a/.github/workflows/Leanback.yml b/.github/workflows/Leanback.yml index c36ed1e7..97fef9af 100644 --- a/.github/workflows/Leanback.yml +++ b/.github/workflows/Leanback.yml @@ -15,7 +15,7 @@ on: jobs: build: - uses: ./.github/workflows/build-sample-without-format-check.yml + uses: ./.github/workflows/build-sample-without-check.yml with: name: Leanback path: Leanback \ No newline at end of file diff --git a/.github/workflows/LeanbackShowcase.yml b/.github/workflows/LeanbackShowcase.yml index 8b0f56ce..3d9ece2a 100644 --- a/.github/workflows/LeanbackShowcase.yml +++ b/.github/workflows/LeanbackShowcase.yml @@ -15,7 +15,7 @@ on: jobs: build: - uses: ./.github/workflows/build-sample-without-format-check.yml + uses: ./.github/workflows/build-sample-without-check.yml with: name: LeanbackShowcase path: LeanbackShowcase \ No newline at end of file diff --git a/.github/workflows/ReferenceAppKotlin.yml b/.github/workflows/ReferenceAppKotlin.yml index c04e823b..8e6fc86f 100644 --- a/.github/workflows/ReferenceAppKotlin.yml +++ b/.github/workflows/ReferenceAppKotlin.yml @@ -15,7 +15,7 @@ on: jobs: build: - uses: ./.github/workflows/build-sample-without-format-check.yml + uses: ./.github/workflows/build-sample-without-check.yml with: name: ReferenceAppKotlin path: ReferenceAppKotlin \ No newline at end of file diff --git a/.github/workflows/TvMaterialCatalog.yml b/.github/workflows/TvMaterialCatalog.yml index d2785fe5..03bfbf40 100644 --- a/.github/workflows/TvMaterialCatalog.yml +++ b/.github/workflows/TvMaterialCatalog.yml @@ -15,7 +15,7 @@ on: jobs: build: - uses: ./.github/workflows/build-sample-without-format-check.yml + uses: ./.github/workflows/build-sample-without-check.yml with: name: TvMaterialCatalog path: TvMaterialCatalog \ No newline at end of file diff --git a/.github/workflows/build-sample-without-format-check.yml b/.github/workflows/build-sample-without-check.yml similarity index 89% rename from .github/workflows/build-sample-without-format-check.yml rename to .github/workflows/build-sample-without-check.yml index 674870d0..8ec3539f 100644 --- a/.github/workflows/build-sample-without-format-check.yml +++ b/.github/workflows/build-sample-without-check.yml @@ -56,10 +56,6 @@ jobs: ~/.gradle/caches/build-cache-* key: gradle-${{ hashFiles('checksum.txt') }} - - name: Check lint - working-directory: ${{ inputs.path }} - run: ./gradlew lintDebug --stacktrace - - name: Build debug working-directory: ${{ inputs.path }} run: ./gradlew assembleDebug --stacktrace @@ -68,10 +64,6 @@ jobs: working-directory: ${{ inputs.path }} run: ./gradlew assembleRelease --stacktrace - - name: Run local tests - working-directory: ${{ inputs.path }} - run: ./gradlew testDebug --stacktrace - - name: Upload build outputs (APKs) uses: actions/upload-artifact@v4 with: