Skip to content

feat: add semantic-release for automated Maven Central and GitHub releases #7

feat: add semantic-release for automated Maven Central and GitHub releases

feat: add semantic-release for automated Maven Central and GitHub releases #7

Workflow file for this run

name: CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '17', '21' ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B clean compile
- name: Run tests
run: mvn -B test
timeout-minutes: 15
- name: Verify package
run: mvn -B verify
- name: Generate coverage report
if: matrix.java == '11'
run: mvn -B jacoco:report
- name: Upload coverage to Codecov
if: matrix.java == '11'
uses: codecov/codecov-action@v3
with:
file: ./target/site/jacoco/jacoco.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false