Skip to content

Project1

Project1 #13

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Build
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'oracle'
cache: maven
- name: maven build
run: mvn package
- id: jacoco
uses: madrapps/jacoco-report@v1.6.1
with:
paths: ${{ github.workspace }}/target/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 30
min-coverage-changed-files: 30
title: Code Coverage
update-comment: true
checkstyle:
name: checkstyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'oracle'
cache: maven
- run: mvn checkstyle:check