Fix duplicate Android namespace and constructor overload ambiguity #142
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: Review PR with Danger | |
| on: | |
| pull_request: | |
| branches: ["develop"] | |
| types: [opened, synchronize, reopened, edited, closed] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone repo | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 100 | |
| - name: set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Set up Ruby 3.0 | |
| uses: actions/setup-ruby@v1 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: vendor/bundle | |
| key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gems- | |
| - name: Bundle install | |
| run: | | |
| gem install bundler | |
| bundle config path vendor/bundle | |
| bundle install --jobs 4 --retry 3 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Run Gradle plugin tests | |
| run: ./gradlew :gradle-plugin:test | |
| - name: Publish plugin and Kick artifacts to Maven local | |
| run: ./gradlew :gradle-plugin:publishToMavenLocal :main-core:publishToMavenLocal :main-runtime:publishToMavenLocal :main-runtime-stub:publishToMavenLocal :file-explorer:publishToMavenLocal :file-explorer-stub:publishToMavenLocal | |
| env: | |
| SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
| SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }} | |
| - name: Build plugin sample | |
| run: ./gradlew :samplePluginApp:compileKotlinJvm :samplePluginApp:compileKotlinIosSimulatorArm64 -PincludePluginSample=true | |
| - name: Assemble debug build | |
| run: ./gradlew clean assembleDebug | |
| - name: Assemble stubs | |
| run: | | |
| echo "isRelease=true" > settings.properties | |
| ./gradlew assembleDebug | |
| - name: Run Lint | |
| run: ./gradlew lintDebug | |
| - name: Run Detekt | |
| run: ./gradlew detektCheckAll | |
| - name: Run Danger | |
| run: | | |
| gem install danger | |
| bundle exec danger --verbose --dangerfile=Dangerfile --danger_id=danger-pr --fail-on-errors=true | |
| env: | |
| DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} |