Allow users to select certain days for alarm to sound #126
Workflow file for this run
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: Android CI | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- 'android/**' | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "checkout" | |
uses: actions/[email protected] | |
- name: Kotlin Linter | |
uses: vroy/gha-kotlin-linter@v4 | |
build: | |
runs-on: macOS-latest | |
needs: lint | |
steps: | |
- uses: actions/[email protected] | |
- name: set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Set up Android SDK | |
uses: android-actions/[email protected] | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew app:assembleDebug | |
- name: Unit tests | |
run: ./gradlew testDebugUnitTest | |
- name: Run instrumented test | |
uses: ReactiveCircus/[email protected] | |
with: | |
arch: 'x86_64' | |
api-level: 33 | |
script: ./gradlew app:connectedDebugAndroidTest | |
- name: Upload Test Reports Folder | |
uses: actions/[email protected] | |
if: ${{ always() }} | |
with: | |
name: reports | |
path: | | |
app/build/reports | |
app/build/test-results | |
report: | |
runs-on: ubuntu-latest | |
needs: build | |
if: ${{ always() }} | |
steps: | |
- name: Download Test Reports Folder | |
uses: actions/[email protected] | |
with: | |
name: reports | |
- name: Android Test Report | |
uses: asadmansr/[email protected] |