Skip to content

Commit 62e4f97

Browse files
committed
build: add EditorConfig lint step to GitHub workflows
1 parent 5179e08 commit 62e4f97

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/lint_changed_files.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ jobs:
116116
# Lint filenames:
117117
echo "${{ steps.changed-files.outputs.files }}" || "${lint_filenames}"
118118
119+
# Lint files against EditorConfig:
120+
- name: 'Lint against EditorConfig'
121+
if: success() || failure()
122+
run: |
123+
make lint-editorconfig-files FILES="${{ steps.changed-files.outputs.files }}"
124+
119125
# Lint Markdown files:
120126
- name: 'Lint Markdown files'
121127
if: success() || failure()

.github/workflows/lint_random_files.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ jobs:
195195
# Lint filenames:
196196
echo "${{ steps.random-files.outputs.files }}" | tr ',' '\n' | "${lint_filenames}"
197197
198+
# Lint files against EditorConfig:
199+
- name: 'Lint against EditorConfig'
200+
if: success() || failure()
201+
run: |
202+
make lint-editorconfig-files FILES="${{ steps.random-files.outputs.files }}"
203+
198204
# Lint Markdown files:
199205
- name: 'Lint Markdown files'
200206
if: ( github.event.inputs.markdown != 'false' ) && ( success() || failure() )

0 commit comments

Comments
 (0)