Skip to content

Commit

Permalink
Re-testing mobiledev cloud integration
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosholgado committed Dec 1, 2022
1 parent 0a658e5 commit eeb165d
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 250 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/build-debug-apk.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: Build debug apk

on:
pull_request:
branches:
- develop
paths-ignore:
- '**.md'
- '.github/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_debug_apk:
name: Build debug apk
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

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

- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: assembleInternalDebug

- name: Obtain debug apk
if: always()
run: cp $(find . -regex '.*outputs/apk/.*internal-debug.apk') pr-ddg-debug.apk

- name: Upload debug apk
if: always()
uses: actions/upload-artifact@v3
with:
name: pr-ddg-debug
path: pr-ddg-debug.apk
#name: Build debug apk
#
#on:
# pull_request:
# branches:
# - develop
# paths-ignore:
# - '**.md'
# - '.github/**'
# workflow_dispatch:
#
#concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
#
#jobs:
# build_debug_apk:
# name: Build debug apk
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: '11'
# distribution: 'adopt'
#
# - name: Build
# uses: gradle/gradle-build-action@v2
# with:
# arguments: assembleInternalDebug
#
# - name: Obtain debug apk
# if: always()
# run: cp $(find . -regex '.*outputs/apk/.*internal-debug.apk') pr-ddg-debug.apk
#
# - name: Upload debug apk
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: pr-ddg-debug
# path: pr-ddg-debug.apk
292 changes: 146 additions & 146 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,146 +1,146 @@
name: CI Checks

on:
push:
branches:
- main
- develop
paths-ignore:
- '**.md'
- '.github/**'
pull_request:
paths-ignore:
- '**.md'
- '.github/**'

concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
code_formatting:
name: Code Formatting
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

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

- name: Run Code Formatting Checks
uses: gradle/gradle-build-action@v2
with:
arguments: code_format_checks

unit_tests:
name: Unit tests
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

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

- name: JVM tests
uses: gradle/gradle-build-action@v2
with:
arguments: jvm_tests

- name: Bundle the JVM checks report
if: always()
run: find . -type d -name 'reports' | zip -@ -r unit-tests-report.zip

- name: Upload the JVM checks report
if: always()
uses: actions/upload-artifact@v3
with:
name: unit-tests-report
path: unit-tests-report.zip

lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

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

- name: Lint
uses: gradle/gradle-build-action@v2
with:
arguments: lint

- name: Bundle the lint report
if: always()
run: find . -name lint-results\* | zip -@ -r lint-report.zip

- name: Upload the JVM lint report
if: always()
uses: actions/upload-artifact@v3
with:
name: lint-report
path: lint-report.zip

android_tests:
runs-on: ubuntu-latest
name: Android CI tests

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

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

- name: Decode secret
env:
FLANK: ${{ secrets.FLANK }}
run: echo $FLANK > flank.json

- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: androidTestsBuild

- name: Run Android Tests
uses: gradle/gradle-build-action@v2
with:
arguments: runFlankAndroidTests

- name: Bundle the Android CI tests report
if: always()
run: find . -type d -name 'fladleResults' | zip -@ -r android-tests-report.zip

- name: Upload the Android CI tests report
if: always()
uses: actions/upload-artifact@v3
with:
name: android-tests-report
path: android-tests-report.zip
#name: CI Checks
#
#on:
# push:
# branches:
# - main
# - develop
# paths-ignore:
# - '**.md'
# - '.github/**'
# pull_request:
# paths-ignore:
# - '**.md'
# - '.github/**'
#
#concurrency:
# group: ${{ github.head_ref || github.ref_name }}
# cancel-in-progress: true
#
#jobs:
# code_formatting:
# name: Code Formatting
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: '11'
# distribution: 'adopt'
#
# - name: Run Code Formatting Checks
# uses: gradle/gradle-build-action@v2
# with:
# arguments: code_format_checks
#
# unit_tests:
# name: Unit tests
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: '11'
# distribution: 'adopt'
#
# - name: JVM tests
# uses: gradle/gradle-build-action@v2
# with:
# arguments: jvm_tests
#
# - name: Bundle the JVM checks report
# if: always()
# run: find . -type d -name 'reports' | zip -@ -r unit-tests-report.zip
#
# - name: Upload the JVM checks report
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: unit-tests-report
# path: unit-tests-report.zip
#
# lint:
# name: Lint
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: '11'
# distribution: 'adopt'
#
# - name: Lint
# uses: gradle/gradle-build-action@v2
# with:
# arguments: lint
#
# - name: Bundle the lint report
# if: always()
# run: find . -name lint-results\* | zip -@ -r lint-report.zip
#
# - name: Upload the JVM lint report
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: lint-report
# path: lint-report.zip
#
# android_tests:
# runs-on: ubuntu-latest
# name: Android CI tests
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: '11'
# distribution: 'adopt'
#
# - name: Decode secret
# env:
# FLANK: ${{ secrets.FLANK }}
# run: echo $FLANK > flank.json
#
# - name: Build
# uses: gradle/gradle-build-action@v2
# with:
# arguments: androidTestsBuild
#
# - name: Run Android Tests
# uses: gradle/gradle-build-action@v2
# with:
# arguments: runFlankAndroidTests
#
# - name: Bundle the Android CI tests report
# if: always()
# run: find . -type d -name 'fladleResults' | zip -@ -r android-tests-report.zip
#
# - name: Upload the Android CI tests report
# if: always()
# uses: actions/upload-artifact@v3
# with:
# name: android-tests-report
# path: android-tests-report.zip
Loading

0 comments on commit eeb165d

Please sign in to comment.