| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
| |
| |
|
|
| name: CI |
|
|
| on: |
| push: |
| branches: [ '*' ] |
| pull_request: |
| branches: [ '*' ] |
|
|
| jobs: |
| mvn: |
| strategy: |
| matrix: |
| profile: |
| - name: 'full-build-jdk8' |
| jdk: 8 |
| args: '-Pfull-build apache-rat:check verify -DskipTests spotbugs:check checkstyle:check' |
| - name: 'full-build-jdk11' |
| jdk: 11 |
| args: '-Pfull-build apache-rat:check verify -DskipTests spotbugs:check checkstyle:check' |
| - name: 'full-build-java-tests' |
| jdk: 11 |
| args: '-Pfull-build verify -Dsurefire-forkcount=1 -DskipCppUnit -Dsurefire.rerunFailingTestsCount=5' |
| - name: 'full-build-cppunit-tests' |
| jdk: 11 |
| args: '-Pfull-build verify -Dtest=_ -DfailIfNoTests=false' |
| fail-fast: false |
| timeout-minutes: 360 |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions/checkout@v4 |
| - name: Set up JDK ${{ matrix.profile.jdk }} |
| uses: actions/setup-java@v4 |
| with: |
| java-version: ${{ matrix.profile.jdk }} |
| distribution: temurin |
| cache: 'maven' |
| - name: Show the first log message |
| run: git log -n1 |
| - name: Install C Dependencies |
| run: | |
| sudo apt update |
| sudo apt install -y libcppunit-dev libsasl2-dev |
| - name: Build with Maven (${{ matrix.profile.name }}) |
| run: mvn -B -V -e -ntp "-Dstyle.color=always" ${{ matrix.profile.args }} |
| env: |
| MAVEN_OPTS: -Djansi.force=true |
| - name: Upload unit test results |
| if: ${{ failure() }} |
| uses: actions/upload-artifact@v4 |
| with: |
| name: surefire-reports-${{ matrix.profile.name }} |
| path: ./**/target/surefire-reports/ |
| if-no-files-found: ignore |
| - name: Upload integration test results |
| if: ${{ failure() }} |
| uses: actions/upload-artifact@v4 |
| with: |
| name: failsafe-reports-${{ matrix.profile.name }} |
| path: ./**/target/failsafe-reports/ |
| if-no-files-found: ignore |
| - name: Upload cppunit test logs |
| if: ${{ failure() }} |
| uses: actions/upload-artifact@v4 |
| with: |
| name: cppunit-logs-${{ matrix.profile.name }} |
| path: ./zookeeper-client/zookeeper-client-c/target/c/TEST-*.txt |
| if-no-files-found: ignore |
| typo-check: |
| name: Typo Check |
| |
| |
| if: ${{ github.event_name == 'pull_request' }} |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions/checkout@v4 |
| - name: Check typos |
| uses: crate-ci/typos@v1.22.4 |
| |
| |
| |
| |
| |
| |
| |
| |
|
|