Skip to content

Add GitHub Actions CI and GitHub Release workflow (#5) #6

Add GitHub Actions CI and GitHub Release workflow (#5)

Add GitHub Actions CI and GitHub Release workflow (#5) #6

Workflow file for this run

name: CI — Build and Test
on:
push:
branches: ["**"]
tags-ignore: ["v*"]
pull_request:
branches: ["**"]
jobs:
build:
name: Build and Test (Java ${{ matrix.java }})
runs-on: ubuntu-latest
strategy:
matrix:
java: ['11', '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: corretto
cache: maven
- name: Build and test
run: mvn --batch-mode clean verify
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-java-${{ matrix.java }}
path: target/surefire-reports/
retention-days: 7