-
Notifications
You must be signed in to change notification settings - Fork 35
64 lines (56 loc) · 2.14 KB
/
dependency-diff.yaml
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
60
61
62
63
64
name: Dependency Diff Report
on: pull_request
jobs:
report:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
distribution: 'zulu'
java-version: 19
- name: Generate dependency diff report for library
uses: yumemi-inc/gradle-dependency-diff-report@v2
id: report-library
with:
configuration: 'releaseRuntimeClasspath'
modules: |
roborazzi-compose-ios|commonMainImplementationDependenciesMetadata
roborazzi-compose-desktop|commonMainImplementationDependenciesMetadata
roborazzi-ai-gemini|commonMainImplementationDependenciesMetadata
roborazzi-ai-openai|commonMainImplementationDependenciesMetadata
roborazzi
roborazzi-compose
roborazzi-compose-preview-scanner-support
- name: Save report-library outputs
run: |
mkdir -p outputs
echo "exists-diff=${{ steps.report-library.outputs.exists-diff }}" > outputs/report-library.txt
- name: Generate dependency diff report for plugin
uses: yumemi-inc/gradle-dependency-diff-report@v2
id: report-plugin
with:
modules: 'roborazzi-gradle-plugin'
configuration: 'runtimeClasspath'
project-dir: 'include-build'
- name: Save report-plugin outputs
run: |
echo "exists-diff=${{ steps.report-plugin.outputs.exists-diff }}" > outputs/report-plugin.txt
- name: Save PR number
if: ${{ github.event_name == 'pull_request' }}
run: |
mkdir -p pr
echo ${{ github.event.number }} > pr/NR
- name: Upload Dependency Diff Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
with:
name: dependency-diff
path: outputs/
retention-days: 30
- name: Upload PR Number Artifact
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
with:
name: pr
path: pr/
retention-days: 30