30 lines
511 B
YAML
30 lines
511 B
YAML
name: Build, Test & Checkstyle
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
cache: 'maven'
|
|
|
|
- name: Build with Maven
|
|
run: ./mvnw clean verify
|
|
|
|
- name: Run tests
|
|
run: ./mvnw test
|
|
|
|
- name: Run Checkstyle
|
|
run: ./mvnw checkstyle:check
|