Skip to content

use Dependency check action #434

use Dependency check action

use Dependency check action #434

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java ${{matrix.java-version}}
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{matrix.java-version}}
- name: Run tests
run: ./mvnw --batch-mode --no-transfer-progress -e test
coverage:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create code coverage report
run: ./mvnw --batch-mode --no-transfer-progress -e test jacoco:report
- name: Upload code coverage report
uses: codecov/codecov-action@v3
with:
files: target/site/jacoco/jacoco.xml
name: codecov
dependency-check:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check dependencies
uses: dependency-check/Dependency-Check_Action@main
id: Depcheck
with:
project: 'property-loader'
path: '.'
format: 'HTML'
args: >
--failOnCVSS 5
--nvdApiKey '${{ secrets.NVD_API_KEY }}'