feat: Enhance SDK with new features, improve documentation, and transition to Maven #24
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: | |
| merge_group: | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| name: test (Java ${{ matrix.java-version }} on ${{ matrix.os-label }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java-version: [ "8", "11", "17" ] | |
| os: [ "ubuntu-latest" ] | |
| os-label: [ "Ubuntu" ] | |
| include: | |
| - { java-version: "11", os: "windows-latest", os-label: "Windows" } | |
| - { java-version: "11", os: "macos-latest", os-label: "macOS" } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| java-package: jdk | |
| check-latest: false | |
| server-id: github | |
| server-username: GITHUB_ACTOR | |
| server-password: GITHUB_TOKEN | |
| overwrite-settings: true | |
| job-status: success | |
| - name: Code style check | |
| run: mvn spotless:check | |
| - name: Build and Test | |
| run: mvn clean verify | |
| - name: Generate JaCoCo Report | |
| run: mvn jacoco:report | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./target/site/jacoco/jacoco.xml | |
| flags: unittests | |
| fail_ci_if_error: true | |
| - name: Cache Maven packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-m2- |