DROID-4095 fix #2113
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| # add "synchronize" in "types", in order to trigger workflow for pull request commit(s) pushes. | |
| types: [ opened ] | |
| branches: [ main, release/**] | |
| name: Run debug unit tests | |
| jobs: | |
| setup-android: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-java@v3 | |
| with: | |
| distribution: "zulu" | |
| java-version: 17 | |
| - name: Setup middleware dependency | |
| env: | |
| token_secret: ${{ secrets.ANYTYPE_SECRET }} | |
| user_secret: ${{ secrets.ANYTYPE_USER_SECRET }} | |
| amplitude_secret: ${{ secrets.ANYTYPE_AMPLITUDE_SECRET }} | |
| amplitude_secret_debug: ${{ secrets.ANYTYPE_AMPLITUDE_DEBUG_SECRET }} | |
| sentry_dsn_secret: ${{ secrets.ANYTYPE_SENTRY_DSN_SECRET }} | |
| run: ./middleware2.sh $token_secret $user_secret $amplitude_secret $amplitude_secret_debug $sentry_dsn_secret | |
| - uses: actions/checkout@master | |
| with: | |
| name: Setup license repository | |
| repository: anyproto/open | |
| ref: refs/heads/main | |
| path: ./open | |
| - name: Check licenses | |
| run: | | |
| cd open | |
| python3 tools/generate.py --platform android | |
| cd .. | |
| sudo gem install license_finder | |
| # existing ignores | |
| license_finder ignored_dependencies add skiko --why "Excluded due to native binary license concerns" | |
| # inherit shared decisions | |
| license_finder inherited_decisions add open/decisions.yml | |
| # APPROVE problematic deps dynamically | |
| license_finder approvals add KBase58 \ | |
| --project-path . \ | |
| --who "CI" \ | |
| --why "MIT (verified manually from komputing/KBase58)" | |
| license_finder approvals add any-crypto-kotlin \ | |
| --project-path . \ | |
| --who "CI" \ | |
| --why "MIT (verified manually from anyproto/any-crypto-kotlin)" | |
| license_finder permitted_licenses add "ML Kit Terms of Service" \ | |
| --project-path . \ | |
| --who "CI" \ | |
| --why "Google ML Kit components required; legal reviewed" | |
| # finally run the scan | |
| license_finder --gradle-command="./gradlew \ | |
| -Pcom.anytype.ci=true \ | |
| -Dorg.gradle.unsafe.configuration-cache=false" | |
| - name: Compile android test sources | |
| run: make compile_android_test_sources | |
| - name: Run unit tests | |
| run: make test_debug_all | |
| - name: Android test report | |
| uses: asadmansr/android-test-report-action@v1.2.0 | |
| if: ${{ always() }} # IMPORTANT: run Android Test Report regardless | |