fix self check in equals of Type #1896
Workflow file for this run
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
| name: CI | |
| on: [push, pull_request] | |
| env: | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| MAVEN_ARGS: -V -B --no-transfer-progress -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 | |
| jobs: | |
| test_jdk: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java: [21] | |
| name: 'Linux JDK ${{ matrix.java }}' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v4 | |
| - name: 'Set up JDK' | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: ${{ matrix.java }} | |
| - uses: s4u/[email protected] | |
| with: | |
| mirrors: '[{"id": "block-plexus-snapshots", "name": "Block Plexus Snapshots", "mirrorOf": "plexus.snapshots", "url": "http://localhost"}]' | |
| - name: 'Test' | |
| run: ./mvnw ${MAVEN_ARGS} -Djacoco.skip=${{ matrix.java != 21 }} install -DskipDistribution=${{ matrix.java != 21 }} | |
| - name: 'Generate coverage report' | |
| if: matrix.java == 21 | |
| run: ./mvnw jacoco:report | |
| - name: 'Upload coverage to Codecov' | |
| if: matrix.java == 21 && github.repository == 'mapstruct/mapstruct' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: 'Publish Snapshots' | |
| if: matrix.java == 21 && github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'mapstruct/mapstruct' | |
| run: ./mvnw -s etc/ci-settings.xml -DskipTests=true -DskipDistribution=true deploy | |
| integration_test_jdk: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java: [ 8, 11, 17 ] | |
| name: 'Linux JDK ${{ matrix.java }}' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v4 | |
| - name: 'Set up JDK 21 for building everything' | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| - name: 'Install Processor' | |
| run: ./mvnw ${MAVEN_ARGS} -DskipTests install -pl processor -am | |
| - name: 'Set up JDK ${{ matrix.java }} for running integration tests' | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: ${{ matrix.java }} | |
| - uses: s4u/[email protected] | |
| with: | |
| mirrors: '[{"id": "block-plexus-snapshots", "name": "Block Plexus Snapshots", "mirrorOf": "plexus.snapshots", "url": "http://localhost"}]' | |
| - name: 'Run integration tests' | |
| run: ./mvnw ${MAVEN_ARGS} verify -pl integrationtest |