Fixed switch style in settings screen #334
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
static-analysis: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Run Static Analysis | |
run: ./gradlew ktlintCheck detekt | |
check-compatibility: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Check Compatibility | |
run: ./gradlew metalavaCheckCompatibilityRelease | |
unit-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Run Unit Tests | |
run: ./gradlew testDebugUnitTest testBaseDebugUnitTest | |
- name: Copy Test Results | |
if: always() | |
run: | | |
mkdir -p junit | |
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} junit/ \; | |
- name: Upload Test Results | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: junit-results | |
path: junit | |
# TODO Re-enable when using mock data and stable | |
# integration-tests: | |
# runs-on: macos-latest | |
# timeout-minutes: 30 | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: set up JDK 17 | |
# uses: actions/setup-java@v3 | |
# with: | |
# distribution: 'zulu' | |
# java-version: 17 | |
# - name: Run Integration Tests | |
# uses: reactivecircus/android-emulator-runner@v2 | |
# with: | |
# api-level: 28 | |
# arch: x86_64 | |
# profile: Nexus 6 | |
# script: ./gradlew connectedBaseDebugAndroidTest | |
# - name: Upload Test Results | |
# if: always() | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: integration-results | |
# path: app/build/reports/androidTests/connected/flavors/base | |
build-base: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Run Build | |
run: ./gradlew assembleBaseDebug | |
build-play: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Run Build | |
run: ./gradlew assemblePlayDebug |