From b5527ba1a2fc0e38d79bbac5da71f99aafd36b85 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseinzadeh Date: Thu, 1 Feb 2024 18:30:00 +0330 Subject: [PATCH] Add a GitHub Actions workflow to check library API --- .github/workflows/check-api.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/check-api.yml diff --git a/.github/workflows/check-api.yml b/.github/workflows/check-api.yml new file mode 100644 index 0000000..beb0b91 --- /dev/null +++ b/.github/workflows/check-api.yml @@ -0,0 +1,21 @@ +name: Check library API binary compatibility + +on: + push: + branches: + - main + +jobs: + check-api-compatibility: + name: Check API compatibility + runs-on: linux-latest + steps: + - name: Checkout the code + uses: actions/checkout@v4 + - name: Set up a specific Java version + uses: actions/setup-java@v4 + with: + distribution: "temurin" # OR adopt OR microsoft OR... + java-version: "17" + - name: Run the check + run: ./gradlew apiCheck