chore: release v1.1.2 #21
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: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java-version: [11, 17, 21] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Maven | |
| run: mvn clean compile -B | |
| - name: Run unit tests | |
| run: mvn test -B | |
| - name: Generate coverage report | |
| if: matrix.java-version == 17 | |
| run: mvn jacoco:report -B | |
| - name: Upload coverage to Codecov | |
| if: matrix.java-version == 17 | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: target/site/jacoco/jacoco.xml | |
| flags: unittests | |
| name: codecov-java-sdk | |
| fail_ci_if_error: false | |
| - name: Check coverage threshold | |
| if: matrix.java-version == 17 | |
| run: mvn jacoco:check -B | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Check code formatting | |
| run: | | |
| mvn com.spotify.fmt:fmt-maven-plugin:check || echo "Code formatting check skipped" | |
| integration-test: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Run integration tests | |
| run: mvn verify -DskipUnitTests -B | |
| continue-on-error: true | |
| package: | |
| runs-on: ubuntu-latest | |
| needs: [build, lint] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Package JAR | |
| run: mvn package -DskipTests -B | |
| - name: Upload JAR artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: axonflow-sdk-java | |
| path: target/*.jar | |
| retention-days: 7 |