Skip to content

Bump version

Bump version #474

Workflow file for this run

name: "Build, lint, and test"
on: [pull_request, push, workflow_dispatch]
env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
jobs:
test-verification-mode:
name: Build and test verification mode
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Start emulator
run: shot-consumer/scripts/start_emulator.sh
timeout-minutes: 20
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Check code formatting
run: ./gradlew clean checkScalaFmtAll ktlintCheck
- name: Shot unit tests
run: ./gradlew test
- name: Shot unit tests
run: ./gradlew :shot-android:connectedCheck
- name: Disable artifacts signing
run: echo "RELEASE_SIGNING_ENABLED=false" >> gradle.properties
- name: Build and install Shot
run: ./gradlew publishToMavenLocal
- name: Execute screenshot tests for shot-consumer-library-no-tests
run: ./gradlew executeScreenshotTests
working-directory: shot-consumer-library-no-tests
- name: Execute screenshot tests for shot-consumer-compose
run: ./gradlew executeScreenshotTests
working-directory: shot-consumer-compose
- name: Execute screenshot tests for shot-consumer
run: ./gradlew executeScreenshotTests
working-directory: shot-consumer
- name: Execute screenshot tests for shot-consumer-flavors green flavor
run: ./gradlew greenCustomBuildTypeExecuteScreenshotTests
working-directory: shot-consumer-flavors
- name: Execute screenshot tests for shot-consumer-flavors blue flavor
run: ./gradlew blueCustomBuildTypeExecuteScreenshotTests
working-directory: shot-consumer-flavors
- name: Set orchestrator enabled
run: echo "orchestrated=true" >> $GITHUB_ENV
- name: Execute screenshot tests with orchestrator for shot-consumer-library-no-tests
run: ./gradlew executeScreenshotTests
working-directory: shot-consumer-library-no-tests
- name: Execute screenshot tests with orchestrator for shot-consumer-compose
run: ./gradlew executeScreenshotTests
working-directory: shot-consumer-compose
- name: Execute screenshot tests with orchestrator for shot-consumer
run: ./gradlew executeScreenshotTests
working-directory: shot-consumer
- name: Execute screenshot tests with orchestrator for shot-consumer-flavors green flavor
run: ./gradlew greenCustomBuildTypeExecuteScreenshotTests
working-directory: shot-consumer-flavors
- name: Execute screenshot tests with orchestrator for shot-consumer-flavors blue flavor
run: ./gradlew blueCustomBuildTypeExecuteScreenshotTests
working-directory: shot-consumer-flavors
- uses: actions/upload-artifact@v2
if: always()
with:
name: Reports
path: shot-consumer-compose/app/build/reports/
test-record-mode:
name: Build and test record mode
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Start emulator
run: shot-consumer/scripts/start_emulator.sh
timeout-minutes: 20
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Disable artifacts signing
run: echo "RELEASE_SIGNING_ENABLED=false" >> gradle.properties
- name: Build and install Shot
run: ./gradlew publishToMavenLocal
- name: Execute screenshot tests for shot-consumer-library-no-tests
run: ./gradlew executeScreenshotTests -Precord
working-directory: shot-consumer-library-no-tests
- name: Execute screenshot tests for shot-consumer-compose
run: ./gradlew executeScreenshotTests -Precord
working-directory: shot-consumer-compose
- name: Execute screenshot tests for shot-consumer
run: ./gradlew executeScreenshotTests -Precord
working-directory: shot-consumer
- name: Execute screenshot tests for shot-consumer-flavors green flavor
run: ./gradlew greenCustomBuildTypeExecuteScreenshotTests -Precord
working-directory: shot-consumer-flavors
- name: Execute screenshot tests for shot-consumer-flavors blue flavor
run: ./gradlew blueCustomBuildTypeExecuteScreenshotTests -Precord
working-directory: shot-consumer-flavors
- name: Set orchestrator enabled
run: echo "orchestrated=true" >> $GITHUB_ENV
- name: Execute screenshot tests with orchestrator for shot-consumer-library-no-tests
run: ./gradlew executeScreenshotTests -Precord
working-directory: shot-consumer-library-no-tests
- name: Execute screenshot tests with orchestrator for shot-consumer-compose
run: ./gradlew executeScreenshotTests -Precord
working-directory: shot-consumer-compose
- name: Execute screenshot tests with orchestrator for shot-consumer
run: ./gradlew executeScreenshotTests -Precord
working-directory: shot-consumer
- name: Execute screenshot tests with orchestrator for shot-consumer-flavors green flavor
run: ./gradlew greenCustomBuildTypeExecuteScreenshotTests -Precord
working-directory: shot-consumer-flavors
- name: Execute screenshot tests with orchestrator for shot-consumer-flavors blue flavor
run: ./gradlew blueCustomBuildTypeExecuteScreenshotTests -Precord
working-directory: shot-consumer-flavors