Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/dependency-diff-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: dependency-diff-comment

on:
workflow_run:
workflows: ['dependency-diff']
types:
- completed

permissions:
pull-requests: write
actions: read

jobs:
dependency-diff-comment:
name: 💬 Dependency diff comment
runs-on: ubuntu-slim
if: github.event.workflow_run.conclusion == 'success'

steps:
- name: 📥 Download artifact
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: e18e-diff-result
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: 💬 Post comment
uses: e18e/action-dependency-diff@d995338f3b229fe7b2cd82048df5da930f70c7c3 # v1.4.4
with:
mode: comment-from-artifact
artifact-path: e18e-diff-result.json
47 changes: 47 additions & 0 deletions .github/workflows/dependency-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: dependency-diff

on:
pull_request:
branches:
- main
- release
paths:
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- docs/package.json
- cli/package.json

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true

permissions:
contents: read

jobs:
dependency-diff:
name: 🔎 Dependency diff
runs-on: ubuntu-slim

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- name: 🔎 Compare dependencies
id: analyze
uses: e18e/action-dependency-diff@d995338f3b229fe7b2cd82048df5da930f70c7c3 # v1.4.4
with:
mode: artifact
detect-replacements: 'true'
duplicate-threshold: '4'
dependency-threshold: '15'
size-threshold: '200000'

- name: 📤 Upload artifact
if: steps.analyze.outputs.artifact-path
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: e18e-diff-result
path: ${{ steps.analyze.outputs.artifact-path }}
Loading