Detect Breaking Changes #917
This file contains 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: "Detect Breaking Changes" | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
detect-breaking-change: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- run: git remote add upstream https://github.com/opensearch-project/OpenSearch.git | |
- run: git fetch upstream | |
- run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Your Name" | |
git merge upstream/main -m "Merged from upstream" | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: temurin # Temurin is a distribution of adoptium | |
java-version: 17 | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: japicmp | |
gradle-version: 8.2.1 | |
build-root-directory: server | |
- if: failure() | |
run: cat server/build/reports/japi.txt |