Skip to content
Closed
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
3 changes: 3 additions & 0 deletions examples/github-actions/full-showcase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
run: |
START=$(date +%s)
./ckb init
continue-on-error: true

if ! ./ckb index 2>&1 | tee /tmp/index.log; then
if grep -q "Indexer not found" /tmp/index.log; then
Expand Down Expand Up @@ -182,6 +183,7 @@ jobs:
VIOLATIONS=0

for f in $(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E '\.(go|ts|js|py)$' | head -20); do
continue-on-error: true
[ -f "$f" ] || continue
r=$(./ckb complexity "$f" --format=json 2>/dev/null || echo '{}')
cy=$(echo "$r" | jq '.summary.maxCyclomatic // 0')
Expand Down Expand Up @@ -229,6 +231,7 @@ jobs:
if [ -f missing_coupled.json.tmp ]; then
jq -s 'unique_by(.file) | {missingCoupled: .}' missing_coupled.json.tmp > coupling.json 2>/dev/null || echo '{"missingCoupled":[]}' > coupling.json
rm -f missing_coupled.json.tmp
continue-on-error: true
else
echo '{"missingCoupled":[]}' > coupling.json
fi
Expand Down
Loading