Skip to content

Commit

Permalink
Merge branch '2133-replace-mockito-inline-by-mockito-core' of https:/…
Browse files Browse the repository at this point in the history
…/github.com/microsoftgraph/msgraph-sdk-java into 2133-replace-mockito-inline-by-mockito-core
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Sep 3, 2024
2 parents ed4ea87 + b737d77 commit 95d8524
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/validate-public-api-surface.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Validate Public API surface changes

on:
workflow_dispatch:
push:
pull_request:
branches: [ 'main' ]

permissions:
contents: read
pull-requests: write
issues: write

jobs:
validate-public-api-surface:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: microsoftgraph/kiota-dom-export-diff-tool/export@main
id: generatePatch
- uses: microsoftgraph/kiota-dom-export-diff-tool/tool@main
if: ${{ steps.generatePatch.outputs.patchFilePath != '' }}
with:
path: ${{ steps.generatePatch.outputs.patchFilePath }}
fail-on-removal: true
id: diff
- uses: microsoftgraph/kiota-dom-export-diff-tool/comment@main
if: ${{ always() && steps.generatePatch.outputs.patchFilePath != '' && steps.diff.outputs.hasExplanations != '' && github.event_name == 'pull_request' }}
continue-on-error: true
with:
comment: ${{ steps.diff.outputs.explanationsFilePath }}
prNumber: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload patch file as artifact
if: always()
uses: actions/upload-artifact@v4
continue-on-error: true
with:
name: patch
path: '*.patch'
- name: Upload explanations file as artifact
if: always()
uses: actions/upload-artifact@v4
continue-on-error: true
with:
name: explanations
path: 'explanations.txt'
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.18"
classpath "gradle.plugin.com.github.viswaramamoorthy:gradle-util-plugins:0.1.0-RELEASE"
classpath "com.github.ben-manes:gradle-versions-plugin:0.51.0"
classpath "com.android.tools.build:gradle:8.5.2"
classpath "com.android.tools.build:gradle:8.6.0"
}
}

Expand Down

0 comments on commit 95d8524

Please sign in to comment.