21 lines
490 B
YAML
21 lines
490 B
YAML
name: CI / Gradle
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
- name: Run Checkstyle
|
|
run: ./gradlew checkstyleMain
|
|
- name: Run tests with coverage
|
|
run: ./gradlew test jacocoTestReport
|
|
- name: Build project
|
|
run: ./gradlew build
|