Skip to content

Release v0.1.0

Release v0.1.0 #3

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
tags-ignore: [ "v*" ] # tag pushes are handled by publish.yml
pull_request:
branches: [ "main" ]
jobs:
test-and-build:
name: Test & Build (Java ${{ matrix.java }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ '17', '21' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: maven
# ── 1. Compile ──────────────────────────────────────────────────────────
- name: Compile
run: mvn -B compile --no-transfer-progress
# ── 2. Test ─────────────────────────────────────────────────────────────
- name: Run tests
run: mvn -B test --no-transfer-progress
# ── 3. Verify (Javadoc + JaCoCo coverage gate) ──────────────────────────
- name: Verify (coverage gate + javadoc)
run: mvn -B verify -DskipTests --no-transfer-progress
# ── 4. Upload coverage report (Java 17 only to avoid duplicate uploads) ─
- name: Upload JaCoCo coverage report
if: matrix.java == '17'
uses: actions/upload-artifact@v4
with:
name: jacoco-report
path: target/site/jacoco/
retention-days: 14