Add package name when unambiguous classes with same name in different… #7
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] | |
| permissions: {} | |
| env: | |
| MAVEN_ARGS: -B -V -ntp -e -Djansi.passthrough=true -Dstyle.color=always | |
| jobs: | |
| java: | |
| name: Java 25 (${{ matrix.os }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macOS-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Setup Java | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '25' | |
| cache: 'maven' | |
| - name: Test | |
| run: ./mvnw $MAVEN_ARGS verify | |
| java-oracle: | |
| name: Java ${{ matrix.java }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # https://jdk.java.net/ | |
| java: [26] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Java | |
| uses: oracle-actions/setup-java@fff43251af9936a0e6a4d5d0946e14f1680e9b6b # v1.5.0 | |
| with: | |
| website: jdk.java.net | |
| release: ${{ matrix.java }} | |
| version: latest | |
| - name: Test | |
| run: ./mvnw $MAVEN_ARGS verify | |
| groovy: | |
| name: Groovy ${{ matrix.groovy }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # https://groovy.apache.org/download.html | |
| groovy: [4.0.28] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Setup Java | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '25' | |
| cache: 'maven' | |
| - name: Test | |
| run: ./mvnw $MAVEN_ARGS -Dgroovy.version=${{ matrix.groovy }} verify | |
| kotlin: | |
| name: Kotlin ${{ matrix.kotlin }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # https://kotlinlang.org/docs/releases.html#release-details | |
| kotlin: [1.9.25, 2.0.21, 2.1.21] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Setup Java | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '25' | |
| cache: 'maven' | |
| - name: Test | |
| run: ./mvnw $MAVEN_ARGS -Dkotlin.version=${{ matrix.kotlin }} verify | |
| javadoc: | |
| name: Javadoc | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Java | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '25' | |
| cache: 'maven' | |
| - name: Generate Javadoc | |
| run: ./mvnw $MAVEN_ARGS -DskipTests package javadoc:javadoc | |
| sonar: | |
| name: Sonar code analysis | |
| runs-on: ubuntu-latest | |
| if: github.repository_owner == 'assertj' && github.event_name == 'push' | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Java | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '25' | |
| cache: 'maven' | |
| - name: Test with Sonar | |
| run: > | |
| ./mvnw $MAVEN_ARGS verify sonar:sonar | |
| -Dsonar.host.url=https://sonarcloud.io | |
| -Dsonar.organization=assertj | |
| -Dsonar.projectKey=joel-costigliola_assertj-core | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| publish-snapshot: | |
| name: Publish Snapshot | |
| needs: [java, javadoc] | |
| runs-on: ubuntu-latest | |
| if: github.repository_owner == 'assertj' && github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Maven Central | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '25' | |
| server-id: central | |
| server-username: MAVEN_CENTRAL_USERNAME | |
| server-password: MAVEN_CENTRAL_TOKEN | |
| gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | |
| - name: Publish to Maven Central | |
| run: ./mvnw $MAVEN_ARGS -DskipTests -Ppublish deploy | |
| env: | |
| MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} | |
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |