Skip to content
Merged
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
17 changes: 16 additions & 1 deletion .github/workflows/reusable-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Code Quality Checks

on:
workflow_call:
inputs:
parallel-lint-excludes:
description: 'Additional folders for parallel-lint to exclude, separated by newline'
type: string
required: false
default: ''

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
Expand Down Expand Up @@ -68,7 +74,16 @@ jobs:

- name: Run Linter
if: steps.check_linter_file.outputs.files_exists == 'true'
run: vendor/bin/parallel-lint -j 10 . --show-deprecated --exclude vendor --exclude .git --checkstyle | cs2pr
run: |
EXCLUDES=("--exclude vendor" "--exclude .git")

for i in "${ADDITIONAL_EXCLUDES[@]}"; do
EXCLUDES+=("--exclude $i")
done

vendor/bin/parallel-lint -j 10 . --show-deprecated "${EXCLUDES[@]}" --checkstyle | cs2pr
env:
ADDITIONAL_EXCLUDES: ${{ inputs.parallel-lint-excludes }}

lint-gherkin: #----------------------------------------------------------------
name: Lint Gherkin Feature files
Expand Down