Skip to content

Commit

Permalink
build: updated build files (#3936)
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon committed Apr 10, 2021
1 parent 502a48d commit 91984f7
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 41 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/android-feature.yml
Expand Up @@ -12,6 +12,7 @@ jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-18.04

steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -27,3 +28,14 @@ jobs:

- name: Unit tests
run: bash ./gradlew testObfPlaystoreDebugUnitTest testOffPlaystoreDebugUnitTest testOpfPlaystoreDebugUnitTest testOpffPlaystoreDebugUnitTest --stacktrace

validate_metadata:
name: Validate Fastlane Metadata
runs-on: ubuntu-20.04

steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Validate fastlane metadata
uses: ashutoshgngwr/validate-fastlane-supply-metadata@v1
49 changes: 33 additions & 16 deletions .github/workflows/android-integration.yml
Expand Up @@ -7,8 +7,8 @@ on:
branches: [develop]

jobs:
test:
name: Run Unit Tests
compile_screenshots:
name: Compile Screenshot Tests
runs-on: ubuntu-20.04

steps:
Expand All @@ -21,18 +21,32 @@ jobs:
distribution: 'adopt'
java-version: '11'

- name: Screenshots android tests
- name: Compile screenshots android tests
uses: eskatos/gradle-command-action@v1
with:
arguments: compileOffPlaystoreScreenshotsAndroidTestSources -PtestBuildType=screenshots

- name: Unit tests
test:
name: Unit Tests
runs-on: ubuntu-20.04

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'

- name: Run unit tests
uses: eskatos/gradle-command-action@v1
with:
arguments: testObfPlaystoreDebugUnitTest testOffPlaystoreDebugUnitTest testOpfPlaystoreDebugUnitTest testOpffPlaystoreDebugUnitTest

apk:
name: Generate APK
assemble_apk:
name: Assemble APKs
runs-on: ubuntu-20.04

steps:
Expand All @@ -45,10 +59,10 @@ jobs:
distribution: 'adopt'
java-version: '11'

- name: Workaround for Android Gradle plugin issue
- name: Workaround for Android Gradle Plugin issue
run: "echo \"ndk.dir=${ANDROID_HOME}/ndk-bundle\" > local.properties"

- name: Build debug APKs
- name: Assemble debug APKs
uses: eskatos/gradle-command-action@v1
with:
arguments: assembleDebug --stacktrace
Expand Down Expand Up @@ -78,26 +92,29 @@ jobs:
path: app/build/outputs/apk/opff/debug/app-opff-debug.apk

# lint:
# name: Android Lint
# name: Lint
# runs-on: ubuntu-20.04
#
# steps:
# - name: Checkout sources
# uses: actions/checkout@v2
#
# - name: Set up JDK 1.8
# - name: Set up JDK 11
# uses: actions/setup-java@v2
# with:
# java-version: 1.8
# distribution: 'adopt'
# java-version: '11'
#
# - name: Workaround for Android Gradle plugin issue
# - name: Workaround for Android Gradle Plugin issue
# run: "echo \"ndk.dir=${ANDROID_HOME}/ndk-bundle\" > local.properties"
#
# - name: Increase memory limit for Gradle
# run: "export GRADLE_OPTS=\"-Xmx4G\""
# - name: Increase gradle daemon memory
# run: "echo \"org.gradle.jvmargs=-Xmx4096m\" > gradle.properties"
#
# - name: Run gradle android lint
# run: ./gradlew lint
# - name: Lint sources
# uses: eskatos/gradle-command-action@v1
# with:
# arguments: lint --stacktrace
#
# - name: Generate GitHub annotations
# uses: yutailang0119/action-android-lint@v1.0.2
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/android-release-sentry.yml
Expand Up @@ -8,6 +8,7 @@ jobs:
finalize-sentry-release:
name: Finalize Sentry release
runs-on: ubuntu-20.04

steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -24,12 +25,12 @@ jobs:
ruby-version: 2.6.x

- name: Install sentry-cli
run: curl -sL https://sentry.io/get-cli/ | bash
run: "curl -sL https://sentry.io/get-cli/ | bash"

- name: Install Dependencies
- name: Install dependencies via bundle
run: gem install bundler && bundle install

- name: Run Fastlane finalize_sentry lane
- name: Run fastlane finalize_sentry lane
run: bundle exec fastlane finalize_sentry
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android-release.yml
Expand Up @@ -102,7 +102,7 @@ jobs:
distribution: 'adopt'
java-version: '11'

- name: Workaround for Android Gradle plugin issue
- name: Workaround for Android Gradle Plugin issue
run: "echo \"ndk.dir=${ANDROID_HOME}/ndk-bundle\" > local.properties"

- name: Set up Ruby 2.6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Expand Up @@ -39,7 +39,7 @@ jobs:
distribution: 'adopt'
java-version: '11'

- name: Workaround for Android Gradle plugin issue
- name: Workaround for Android Gradle Plugin issue
run: "echo \"ndk.dir=${ANDROID_HOME}/ndk-bundle\" > local.properties"

- name: Build debug APKs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/crowdin.yml
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
- name: Checkout sources
uses: actions/checkout@v2

- name: crowdin action
- name: Sync translations with Crowdin
uses: crowdin/github-action@1.1.0
with:
upload_translations: true # default is false
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/fastlane-supply-checks.yml

This file was deleted.

0 comments on commit 91984f7

Please sign in to comment.