Skip to content

Commit

Permalink
Added github action yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
rob729 committed Oct 8, 2023
1 parent 2a32d62 commit 0ffab5f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build debug APK
on:
workflow_dispatch:
push:
branches:
- '**'
paths-ignore:
- 'README.md'
- 'assets/**'
- '.github/**/*.md'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'gradle'

- name: Create debug directory
run: mkdir -p app/src/debug

- name: Decode google-services.json
env:
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
run: echo $GOOGLE_SERVICES > app/src/debug/google-services.json

- name: Build debug APK and run jvm tests
run: ./gradlew assembleDebug --stacktrace

- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: app
path: app/build/outputs/apk/debug/*.apk
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
.externalNativeBuild
.cxx
local.properties
.idea
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ dependencies {

androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation "androidx.compose.ui:ui-test-junit4"
debugImplementation "androidx.compose.ui:ui-tooling"
debugImplementation "androidx.compose.ui:ui-test-manifest"
implementation "androidx.navigation:navigation-compose:${rootConfiguration.nav_version}"
Expand Down

0 comments on commit 0ffab5f

Please sign in to comment.