-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathsdk-platform-java-analyze_dependency.yaml
More file actions
59 lines (59 loc) · 1.67 KB
/
sdk-platform-java-analyze_dependency.yaml
File metadata and controls
59 lines (59 loc) · 1.67 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: sdk-platform-java Run dependency analyzer
on:
workflow_dispatch:
inputs:
system:
description: the package management system
required: true
type: choice
default: maven
options:
- maven
name:
description: the name of the dependency
required: true
type: string
version:
description: the version of the dependency
required: true
type: string
env:
BUILD_SUBDIR: sdk-platform-java
jobs:
filter:
runs-on: ubuntu-latest
outputs:
library: ${{ steps.filter.outputs.library }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
library:
- 'sdk-platform-java/**'
Run-dependency-analyzer:
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.2
- name: Install dependency analyzer
shell: bash
run: |
mvn clean install -V --batch-mode --no-transfer-progress -DskipTests
working-directory: java-shared-dependencies/dependency-analyzer
- name: Check dependency information
shell: bash
run: |
mvn exec:java -Ddep.system=${{ github.event.inputs.system }} -Ddep.name=${{ github.event.inputs.name }} -Ddep.version=${{ github.event.inputs.version }}
working-directory: java-shared-dependencies/dependency-analyzer