Skip to content

Generated beta models and request builders #877

Generated beta models and request builders

Generated beta models and request builders #877

Workflow file for this run

name: Gradle Build and Compare Package
on:
push:
branches: [ dev, feature/6.0 ]
pull_request:
branches: [ dev, feature/6.0 ]
paths-ignore:
- '.gradle/wrapper'
- '.gitignore'
- 'LICENSE'
- 'THIRD PARTY NOTICES'
- '*.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 18
distribution: 'adopt'
cache: gradle
- name: Detect Secrets
uses: RobertFischer/[email protected]
- name: Grant Execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Upload Unit Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: UnitTests
path: |
build/reports/tests/test/**
build/test-results/**
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: kiota-drop
path: |
**/libs/*
build/generated-pom.xml
build/generated-pom.xml.asc
build.gradle
gradlew
gradlew.bat
settings.gradle
gradle.properties
**/gradle/**
Scripts/**
compare-packages:
needs: build
runs-on: ubuntu-latest
env:
CURRENT_PKG_DIFF: ./artifacts/current-kiota/build/libs/msgraph-beta-sdk-java.jar
PRIOR_PKG_DIFF: ./artifacts/previous-kiota/build/libs/msgraph-beta-sdk-java.jar
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 18
distribution: 'adopt'
cache: gradle
- name: Download Current Build
uses: actions/download-artifact@v3
with:
name: kiota-drop
path: artifacts/current-kiota/
- name: Download Last Successful Build
uses: dawidd6/[email protected]
with:
workflow: preview-and-release.yml
workflow_conclusion: success
branch: feature/6.0
event: push
name: kiota-drop
path: artifacts/previous-kiota/
- name: Run PKG Diff
continue-on-error: true
run: |
sudo apt install pkgdiff
pkgdiff -hide-unchanged ${{ env.PRIOR_PKG_DIFF }} ${{ env.CURRENT_PKG_DIFF }}
- name: Upload Diff Artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: diff
path: |
./pkgdiff_reports/**