All checks were successful
CI / build-and-test (pull_request) Successful in 24s
actions/upload-artifact@v4 refuses to run on Gitea (detected as GHES). Use the Gitea-compatible fork from gitea.com/actions/gitea-upload-artifact.
31 lines
634 B
YAML
31 lines
634 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: https://gitea.com/actions/gitea-upload-artifact@v4
|
|
with:
|
|
name: jacoco-report
|
|
path: target/site/jacoco/
|