diff --git a/.github/workflows/android_build.yml b/.github/workflows/android_build.yml new file mode 100644 index 0000000..0efb61b --- /dev/null +++ b/.github/workflows/android_build.yml @@ -0,0 +1,93 @@ +name: Android Build + +on: + push: + branches: + - dev + pull_request: + branches: + - dev + +jobs: + test_job: + name: Test + runs-on: ubuntu-latest + continue-on-error: true + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Restore Cache + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Run Debug Tests + run: ./gradlew testDebugUnitTest --continue + + - name: Upload Test Reports + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: test-reports + path: '**/build/reports/tests/' + + lint_job: + name: Lint + runs-on: ubuntu-latest + continue-on-error: true + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Restore Cache + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Run Debug Lint + run: ./gradlew lintDebug + + - name: Upload Lint Reports + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: lint-report + path: '**/build/reports/lint-results-*' + + assemble_job: + name: Assemble + runs-on: ubuntu-latest + continue-on-error: true + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Restore Cache + uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Assemble Debug + run: ./gradlew assembleDebug + + - name: Upload APK + uses: actions/upload-artifact@v2 + with: + name: apk + path: app/build/outputs/apk/debug/**.apk \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..fb7f4a8 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..c00d563 --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 674414f..f4ef529 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,10 +4,10 @@