From 4ea5f7426252250ecc841f7ee7e00c08afb4d0e3 Mon Sep 17 00:00:00 2001 From: Daniel Jette Date: Fri, 25 Aug 2023 09:16:49 -0400 Subject: [PATCH] Use Bitrise to verify Library and LegacySample --- .github/workflows/library_build.yml | 84 ----------------------------- .github/workflows/sample_build.yml | 3 -- test_and_archive.sh | 8 --- 3 files changed, 95 deletions(-) delete mode 100644 .github/workflows/library_build.yml diff --git a/.github/workflows/library_build.yml b/.github/workflows/library_build.yml deleted file mode 100644 index 826b6cde..00000000 --- a/.github/workflows/library_build.yml +++ /dev/null @@ -1,84 +0,0 @@ -name: Build Library -on: [pull_request] - -jobs: - - # Run Gradle Wrapper Validation Action to verify the wrapper's checksum - gradleValidation: - name: Gradle Wrapper - runs-on: ubuntu-latest - steps: - - # Check out current repository - - name: Fetch Sources - uses: actions/checkout@v2 - - # Validate wrapper - - name: Gradle Wrapper Validation - uses: gradle/wrapper-validation-action@v1 - - instrumentationTests: - name: Instrumentation Tests - runs-on: macos-latest - timeout-minutes: 30 - steps: - - - name: Fetch Sources - uses: actions/checkout@v2 - - # Setup Java 11 environment for the next steps - - name: Setup Java - uses: actions/setup-java@v1 - with: - java-version: 11 - - - name: Validate Build - run: ./gradlew :Library:assemble - - - name: Run Instrumentation Tests - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 29 - profile: pixel_3a - target: google_apis - script: ./github_action_emulator_command.sh :Library:connectedDebugAndroidTest - - test: - name: Test Library - needs: gradleValidation - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - # Check out current repository - - name: Fetch Sources - uses: actions/checkout@v2 - - # Setup Java 11 environment for the next steps - - name: Setup Java - uses: actions/setup-java@v1 - with: - java-version: 11 - - # Cache Gradle dependencies - - name: Setup Cache - uses: actions/cache@v1 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle- - - # Run ktlint - - name: Run KtLint - run: ./gradlew :Library:ktlint - - # Run test Gradle task - - name: Run JVM Tests - run: ./gradlew :Library:test - - - name: Archive test results - if: ${{ always() }} - uses: actions/upload-artifact@v2 - with: - name: junit-test-results - path: ./Library/build/reports/tests/**/** diff --git a/.github/workflows/sample_build.yml b/.github/workflows/sample_build.yml index 30e7fb56..b6c009d5 100644 --- a/.github/workflows/sample_build.yml +++ b/.github/workflows/sample_build.yml @@ -17,9 +17,6 @@ jobs: with: java-version: 11 - - name: Validate build - run: ./gradlew LegacySample:assemble - - name: Validate build run: ./gradlew FlixSample:assemble diff --git a/test_and_archive.sh b/test_and_archive.sh index fbde3b10..46ad0277 100755 --- a/test_and_archive.sh +++ b/test_and_archive.sh @@ -1,13 +1,5 @@ #!/bin/sh -./github_action_emulator_command.sh LegacySample:screenshotTest - -./gradlew LegarySample:screenshotPull - -mkdir -p ./output/ - -git status -s --porcelain | grep --color=no "^ M.*png$" | sed s/" M "/""/g | xargs -I {} cp {} ./output/ - ./github_action_emulator_command.sh FlixSample:screenshotTest ./gradlew FlixSample:screenshotPull