Skip to content

Commit 8752e02

Browse files
Add Package DIff Step to CI Build (#176)
* Add Package DIff Step to CI Build * Update gradle-build.yml * Update gradle-build.yml * Update .github/workflows/gradle-build.yml Co-authored-by: Vincent Biret <[email protected]> * Cleanup Ready for Merge * Cleanup(2) Ready for Merge Co-authored-by: Vincent Biret <[email protected]>
1 parent 0ff3e3e commit 8752e02

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/gradle-build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,42 @@ jobs:
5151
gradle.properties
5252
**/gradle/**
5353
Scripts/**
54+
55+
compare-packages:
56+
needs: build
57+
runs-on: ubuntu-latest
58+
env:
59+
CURRENT_PKG_DIFF: ./artifacts/current/build/libs/msgraph-beta-sdk-java.jar
60+
PRIOR_PKG_DIFF: ./artifacts/previous/build/libs/msgraph-beta-sdk-java.jar
61+
steps:
62+
- uses: actions/checkout@v2
63+
- name: Set up JDK
64+
uses: actions/setup-java@v2
65+
with:
66+
java-version: '16'
67+
distribution: 'adopt'
68+
cache: gradle
69+
- name: Download Current Build
70+
uses: actions/download-artifact@v2
71+
with:
72+
name: drop
73+
path: artifacts/current/
74+
- name: Download Last Successful Build
75+
uses: dawidd6/[email protected]
76+
with:
77+
workflow: preview-and-release.yml
78+
workflow_conclusion: success
79+
branch: dev
80+
event: push
81+
name: drop
82+
path: artifacts/previous/
83+
- name: Run PKG Diff
84+
run: |
85+
sudo apt install pkgdiff
86+
pkgdiff -hide-unchanged ${{ env.CURRENT_PKG_DIFF }} ${{ env.PRIOR_PKG_DIFF }}
87+
- name: Upload Diff Artifact
88+
uses: actions/[email protected]
89+
with:
90+
name: diff
91+
path: |
92+
./pkgdiff_reports/**

0 commit comments

Comments
 (0)