Skip to content

pre-commit tests

pre-commit tests #42

Workflow file for this run

name: pre-commit tests
on:
pull_request_review:
types: [submitted]
jobs:
hopsworks-unit-tests:
name: Hopsworks Unit Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
cache: 'maven'
- name: Run unit tests
run: mvn --batch-mode test
hopsworks-vulnerability-checker:
name: Hopsworks Vulnerability Checker
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
cache: 'maven'
- name: Set up .m2 settings.xml
run: mkdir -p ~/.m2 && echo "<settings><servers><server><id>nvd</id><password>${{ secrets.NVD_API_KEY }}</password></server></servers></settings>" > ~/.m2/settings.xml
- name: Run vulnerability checker
run: mvn clean install -Powasp-dependency-check,spot-bugs -DskipTests