Prepare release of Kotlin AutoMapper 0.7.0 #19
This file contains hidden or 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
| # 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 | |
| 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 | |
| # Runs the main check task to compile, test, and verify the project | |
| - name: Run Tests & Quality Checks | |
| run: ./gradlew check | |
| # Gradle Daemon Cleanup | |
| - name: Gradle Daemon Cleanup | |
| if: always() | |
| run: ./gradlew --stop |