Skip to content

Commit

Permalink
[Build] Add a script to execute revapi without gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jbonofre committed May 29, 2024
1 parent f9cdde2 commit 08d585c
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 1,273 deletions.
38 changes: 3 additions & 35 deletions .github/workflows/api-binary-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,13 @@
# under the License.
#

name: "API Binary Compatibility Checks"
on:
push:
branches:
- 'main'
- '0.**'
tags:
- 'apache-iceberg-**'
pull_request:
paths:
- 'api/**'
- '.palantir/revapi.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
name: "API Compatibility Checks"
on: pull_request

jobs:
revapi:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
# fetch-depth of zero ensures that the tags are pulled in and we're not in a detached HEAD state
# revapi depends on the tags, specifically the tag from git describe, to find the relevant override
# in the .palantir/revapi.yml file
#
# See https://github.com/actions/checkout/issues/124
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
- run: |
echo "Using the old version tag, as per git describe, of $(git describe)";
- run: ./gradlew revapi --rerun-tasks
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test logs
path: |
**/build/testlogs
dev/revapi
Loading

0 comments on commit 08d585c

Please sign in to comment.