Skip to content

Prepare release of Kotlin AutoMapper 0.11.0 #124

Prepare release of Kotlin AutoMapper 0.11.0

Prepare release of Kotlin AutoMapper 0.11.0 #124

# This workflow builds the project on every push and pull request to the main branch
name: 'Build and Test'
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
# Checks out the repository code so the workflow can access it
- name: Checkout repository
uses: actions/checkout@v6
# Sets up the specified Java version required by the project
- name: Setup JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
# Sets up the Gradle for the project
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
# Runs the main check task to compile, test, and verify the project
- name: Run Tests & Quality Checks
run: ./gradlew check
# Checks the binary compatibility of the library's files
- name: Check Binary Compatibility
run: |
if ! ./gradlew checkLegacyAbi; then
echo "::error::This PR changes Kotlin AutoMapper's public API. Run './gradlew updateLegacyAbi' and commit the new ABI files"
exit 1
fi