Skip to content

Commit

Permalink
46 Add github flows (#49)
Browse files Browse the repository at this point in the history
* 46 Add github flows

* 46 Add jacoco reporter

* Revert "46 Add jacoco reporter"

This reverts commit 5419f70.

* 46 Add controllers to jacoco
  • Loading branch information
asavershin authored Oct 2, 2024
1 parent 6ebf552 commit 375ac97
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/JavaMavenCI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Java CI with Maven

on:
push:
branches:
- '*'
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Compile with maven
run: mvn clean compile

checkstyle:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Checkstyle with maven
run: mvn checkstyle:check

test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Compile maven project
run: mvn clean compile
- name: Test maven project
run: mvn test
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@
<include>agroscience/fields/services/Field*</include>
<include>agroscience/fields/services/Soil*</include>
<include>agroscience/fields/services/Crops*</include>
<include>agroscience/fields/controllers/*</include>
</includes>
</configuration>
</plugin>
Expand Down

0 comments on commit 375ac97

Please sign in to comment.