Dropbox and Onedrive implementation of storage API using RESTful APIs #288
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
| name: Android CI | |
| on: | |
| pull_request: | |
| branches: [main, develop, "release/**"] | |
| types: [opened, synchronize] | |
| jobs: | |
| # Build and publish only core package to MavenLocal | |
| storage-core: | |
| uses: ./.github/workflows/build_and_publish_to_maven_local.yml | |
| with: | |
| output-cache-prefix: mavenLocal-core | |
| gradle-command: "publishCoreToMavenLocal" | |
| secrets: inherit | |
| # Build and publish all plugins to MavenLocal | |
| storage-plugins: | |
| needs: storage-core | |
| uses: ./.github/workflows/build_and_publish_to_maven_local.yml | |
| with: | |
| input-cache-prefix: mavenLocal-core | |
| output-cache-prefix: mavenLocal-core-and-plugins | |
| gradle-command: "publishPluginsToMavenLocal" | |
| secrets: inherit | |
| # # Assemble sample app | |
| # assemble_modules: | |
| # name: Assemble modules | |
| # needs: storage-plugins | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Setup JDK | |
| # uses: actions/setup-java@v4 | |
| # with: | |
| # distribution: "zulu" | |
| # java-version: "17" | |
| # - name: Setup Gradle | |
| # uses: gradle/actions/setup-gradle@v3 | |
| # with: | |
| # cache-read-only: false | |
| # - name: Setup secrets | |
| # run: bash ./.github/scripts/setup_secrets.sh "${{ secrets.GOOGLE_CLIENT_ID}}" "${{ secrets.DROPBOX_CLIENT_ID }}" "${{ secrets.MICROSOFT_CLIENT_ID }}" "${{ secrets.MICROSOFT_SIGNATURE_HASH }}" | |
| # - name: Set useMavenLocal flag | |
| # run: echo useMavenLocal=true >> local.properties | |
| # - name: Restore Cache MavenLocal | |
| # uses: actions/cache@v4 | |
| # with: | |
| # path: ~/.m2/repository | |
| # key: mavenLocal-core-and-plugins-${{ github.run_id }} | |
| # - name: Assemble app debug APK | |
| # run: ./gradlew assembleDebug | |
| code_quality_analysis: | |
| name: Check code quality | |
| needs: storage-plugins | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "zulu" | |
| java-version: "17" | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v3 | |
| with: | |
| cache-read-only: false | |
| - name: Setup secrets | |
| run: bash ./.github/scripts/setup_secrets.sh "${{ secrets.GOOGLE_CLIENT_ID}}" "${{ secrets.DROPBOX_CLIENT_ID }}" "${{ secrets.MICROSOFT_CLIENT_ID }}" "${{ secrets.MICROSOFT_SIGNATURE_HASH }}" | |
| - name: Set useMavenLocal flag | |
| run: echo useMavenLocal=true >> local.properties | |
| - name: Restore Cache MavenLocal | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: mavenLocal-core-and-plugins-${{ github.run_id }} | |
| - name: Misspelling on detekt + ktlint | |
| run: ./gradlew detekt --stacktrace --continue | |
| - name: Run unit tests and check coverage | |
| run: ./gradlew jacocoCoverageVerification --stacktrace --continue |