-
Notifications
You must be signed in to change notification settings - Fork 145
43 lines (35 loc) · 1.1 KB
/
hopsworks-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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