Some checks failed
CI / build-and-test (pull_request) Failing after 16s
The Gitea runner image does not include Maven, causing 'mvn: command not found'. Add Maven wrapper (mvnw) so CI downloads Maven automatically. Closes #25
31 lines
610 B
YAML
31 lines
610 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 16
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '16'
|
|
distribution: 'temurin'
|
|
|
|
- name: Build and test with coverage
|
|
run: ./mvnw verify --batch-mode
|
|
|
|
- name: Upload coverage report
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: jacoco-report
|
|
path: target/site/jacoco/
|