Skip to content

Commit

Permalink
build: add dokka to android-integration.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon committed Jul 1, 2021
1 parent 716611c commit 1fbd642
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 44 deletions.
45 changes: 41 additions & 4 deletions .github/workflows/android-integration.yml
Expand Up @@ -2,11 +2,12 @@ name: Android Integration

on:
push:
branches: [develop]
branches: [ develop ]
pull_request:
branches: [develop]
branches: [ develop ]

jobs:

compile_screenshots:
name: Compile Screenshot Tests
runs-on: ubuntu-20.04
Expand All @@ -28,6 +29,7 @@ jobs:
compileOffPlaystoreScreenshotsAndroidTestSources
-PtestBuildType=screenshots
test:
name: Unit Tests
runs-on: ubuntu-20.04
Expand All @@ -51,6 +53,7 @@ jobs:
testOpfPlaystoreDebugUnitTest
testOpffPlaystoreDebugUnitTest
assemble_apk:
name: Assemble APKs
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -107,8 +110,9 @@ jobs:
lint:
name: Lint
lint_off:
name: Lint OFF
runs-on: ubuntu-20.04

steps:
Expand Down Expand Up @@ -136,3 +140,36 @@ jobs:
uses: yutailang0119/action-android-lint@v1.1.0
with:
xml_path: ./app/build/reports/lint-results-offPlaystoreDebug.xml

build_deploy_pages:
name: Deploy dokka to GitHub Pages
runs-on: ubuntu-20.04

needs:
- assemble_apk
- test

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

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

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Generate documentation
uses: eskatos/gradle-command-action@v1.3.3
with:
arguments: dokkaHtml

- name: Deploy API documentation to Github Pages
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: app/build/dokka/html/
27 changes: 15 additions & 12 deletions .github/workflows/android-release.yml
Expand Up @@ -4,11 +4,12 @@ on:
push:
branches:
- 'release/*'
#- 'fastlane-for-flavors'
# - 'fastlane-for-flavors'

jobs:
testObf:
name: OBF testing

testOff:
name: Test OFF
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
Expand All @@ -23,10 +24,10 @@ jobs:
- name: Unit tests
uses: eskatos/gradle-command-action@v1.3.3
with:
arguments: testObfPlaystoreDebugUnitTest --stacktrace
arguments: testOffPlaystoreDebugUnitTest --stacktrace

testOff:
name: OFF testing
testObf:
name: Test OBF
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
Expand All @@ -41,10 +42,10 @@ jobs:
- name: Unit tests
uses: eskatos/gradle-command-action@v1.3.3
with:
arguments: testOffPlaystoreDebugUnitTest --stacktrace
arguments: testObfPlaystoreDebugUnitTest --stacktrace

testOpf:
name: OPF testing
name: Test OPF
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
Expand All @@ -62,7 +63,7 @@ jobs:
arguments: testOpfPlaystoreDebugUnitTest --stacktrace

testOpff:
name: OPFF testing
name: Test OPFF
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
Expand All @@ -80,13 +81,15 @@ jobs:
arguments: testOpffPlaystoreDebugUnitTest --stacktrace

google-play-internal:
name: Deploy OFF on Google Play
runs-on: ubuntu-20.04

needs:
- testObf
- testOff
- testOpf
- testOpff
name: Generate and deploy Open Food Facts on Google Play
runs-on: ubuntu-20.04

steps:
- name: Checkout sources
uses: actions/checkout@v2.3.4
Expand Down Expand Up @@ -127,7 +130,7 @@ jobs:
SIGN_STORE_PASSWORD: ${{ secrets.SIGN_STORE_PASSWORD }}
SIGN_KEY_ALIAS: ${{ secrets.SIGN_KEY_ALIAS }}
SIGN_KEY_PASSWORD: ${{ secrets.SIGN_KEY_PASSWORD }}

- name: Run Fastlane release lane for Open Products Facts
run: bundle exec fastlane release_opf
env:
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/deploy-java-docs.yml

This file was deleted.

0 comments on commit 1fbd642

Please sign in to comment.