From 15a4d564cd2bbb98dc3cd620bf72e427201fb17e Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Thu, 15 Jul 2021 13:19:23 +0000 Subject: [PATCH 1/3] Trying add integration --- .github/workflows/integration.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000..8be6647 --- /dev/null +++ b/.github/workflows/integration.yml @@ -0,0 +1,22 @@ +name: integration +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + # Execute unit tests + - name: Unit Test + working-directory: ./AnLinux + run: ./gradlew testDebugUnitTest + + - name: Android Test Report + uses: asadmansr/android-test-report-action@v1.2.0 + if: ${{ always() }} # IMPORTANT: run Android Test Report regardless From 3484c6e7692f45e533ef6237fc9af15744867060 Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Thu, 15 Jul 2021 13:22:05 +0000 Subject: [PATCH 2/3] Add execute permission to gradlew --- AnLinux/gradlew | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 AnLinux/gradlew diff --git a/AnLinux/gradlew b/AnLinux/gradlew old mode 100644 new mode 100755 From 831c61a3fc2d6910885b43e50ef225b927de3d30 Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Fri, 16 Jul 2021 10:08:55 +0000 Subject: [PATCH 3/3] Add release.yml --- .github/workflows/integration.yml | 4 ++++ .github/workflows/release.yml | 40 +++++++++++++++++++++++++++++++ AnLinux/gradlew | 0 3 files changed, 44 insertions(+) create mode 100644 .github/workflows/release.yml mode change 100755 => 100644 AnLinux/gradlew diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 8be6647..9fcb455 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -12,6 +12,10 @@ jobs: with: java-version: 1.8 + - name: Make Gradle executable + working-directory: ./AnLinux + run: chmod +x ./gradlew + # Execute unit tests - name: Unit Test working-directory: ./AnLinux diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..74d0131 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: Build & Release APK + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Make Gradle executable + working-directory: ./AnLinux + run: chmod +x ./gradlew + + - name: Build with Gradle + working-directory: ./AnLinux + run: ./gradlew build + + - name: Build Debug APK + working-directory: ./AnLinux + run: ./gradlew assembleDebug + + - name: Generate version.txt for Hub release + working-directory: ./AnLinux + run: ./gradlew generateVersionTxt + + - name: Releasing using Hub + uses: valley-fordham/action-release-debugapk@master + env: + GITHUB_TOKEN: ${{ secrets.TOKEN }} + APP_FOLDER: ./AnLinux/app + RELEASE_TITLE: New Release diff --git a/AnLinux/gradlew b/AnLinux/gradlew old mode 100755 new mode 100644