Skip to content

fixes detekt plugin detection when running maven 3.9.9; adds a test w… #304

fixes detekt plugin detection when running maven 3.9.9; adds a test w…

fixes detekt plugin detection when running maven 3.9.9; adds a test w… #304

Workflow file for this run

name: Run Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
# uncomment this when github actions don't find maven
- name: Check maven version
run: mvn --version
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
env:
DP_M2_HOME: /usr/share/apache-maven-3.8.8
DP_MVN_REPO: ~/.m2
run: mvn --batch-mode --update-snapshots verify
- name: Upload coverage to codecov
uses: codecov/[email protected]
with:
file: ./target/site/jacoco/jacoco.xml
flags: unittests
# - name: Upload war file to github releases
# uses: AButler/[email protected]
# with:
# files: 'target/drop-project.war'
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# release-tag: 0.9.3