diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef4f4b0ce..a4f6079df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,27 @@ jobs: mvn --batch-mode -Pverify-format clean compile shell: 'bash' + codecov: + name: Codecov + continue-on-error: true + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: 21 + distribution: 'temurin' +# - name: Install dependencies +# run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V + - name: Run tests and collect coverage + run: mvn -B test + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + build: runs-on: ubuntu-latest strategy: diff --git a/CHANGELOG.md b/CHANGELOG.md index dca2a7073..65a646fd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- Code coverage. [#11](https://github.com/tzaeschke/phtree-cpp/pull/11) + ### Changed - BREAKING CHANGE: Changed maven artifactId to "client" [#9](https://github.com/tzaeschke/phtree-cpp/pull/9)