-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
57 lines (53 loc) · 1.37 KB
/
action.yml
File metadata and controls
57 lines (53 loc) · 1.37 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
name: 'CodePulse Architectural Review'
description: 'Automated architectural health check and PR review'
author: 'ArchPulse'
inputs:
command:
description: 'Command to run (review, verify, audit)'
required: false
default: 'review'
dir:
description: 'Project directory'
required: false
default: '.'
github_token:
description: 'GitHub Token for PR comments'
required: false
default: ${{ github.token }}
fail_on_critical:
description: 'Fail CI if critical issues are found'
required: false
default: 'true'
runs:
using: 'composite'
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install CodePulse
shell: bash
run: npm install -g @archpulse/codepulse
- name: Run CodePulse
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
FAIL_ON_CRITICAL: ${{ inputs.fail_on_critical }}
run: |
case "${{ inputs.command }}" in
review)
codepulse review ${{ inputs.dir }} --github
;;
verify)
codepulse verify ${{ inputs.dir }}
;;
audit)
codepulse audit ${{ inputs.dir }}
;;
*)
codepulse ${{ inputs.command }} ${{ inputs.dir }}
;;
esac
branding:
icon: 'shield'
color: 'blue'