-
-
Notifications
You must be signed in to change notification settings - Fork 165
46 lines (45 loc) · 1.34 KB
/
java-reachables-test.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
44
45
46
name: Reachables tests
on:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
node-version: ['21.x']
os: ['ubuntu-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build
run: |
npm install
npm run build --if-present
mkdir -p repotests
mkdir -p bomresults
- uses: actions/checkout@v4
with:
repository: 'DependencyTrack/dependency-track'
path: 'repotests/dependency-track'
- name: compile
run: |
cd repotests/dependency-track
mvn clean compile -DskipTests -Dmaven.test.skip=true
- name: repotests
run: |
bin/cdxgen.js -p -t java --profile research -o repotests/dependency-track/bom.json repotests/dependency-track
cp -rf repotests/dependency-track/*.json *.slices.json bomresults/
- uses: actions/upload-artifact@v3
with:
name: bomresults
path: bomresults