diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 1fd2b36f..882319ff 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -12,14 +12,13 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: true -permissions: - contents: write # Needed for git-auto-commit-action - jobs: build_test_lint: name: "Build, Test, and Lint" runs-on: ubuntu-latest timeout-minutes: 60 + permissions: + contents: write # Needed for git-auto-commit-action steps: - name: Checkout code @@ -40,9 +39,6 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Build debug APK - run: ./gradlew assembleDebug --no-configuration-cache - - name: Apply Spotless run: ./gradlew spotlessApply --init-script gradle/init.gradle.kts --no-configuration-cache @@ -52,6 +48,9 @@ jobs: commit_message: 🤖 Apply Spotless formatting file_pattern: '**/*.kt **/*.kts **/*.java **/*.xml' + - name: Build debug APK + run: ./gradlew assembleDebug --no-configuration-cache + - name: Verify Screenshot Tests (AndroidX) run: ./gradlew validateDebugScreenshotTest @@ -143,4 +142,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: test-reports-${{ matrix.api-level }} - path: '**/build/reports/androidTests' \ No newline at end of file + path: '**/build/reports/androidTests'