Skip to content

Commit 36b8f6b

Browse files
committed
Добавление проверки EditorConfig в CI
Closes GH-10
1 parent 027fe4d commit 36b8f6b

File tree

4 files changed

+84
-62
lines changed

4 files changed

+84
-62
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ indent_size = 2
1111
insert_final_newline = true
1212
trim_trailing_whitespace = true
1313

14-
[*.xml]
14+
[*.{xml,ent}]
1515
indent_size = 1

.github/workflows/editorconfig.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Check EditorConfig
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Get changed files
17+
id: get_file_changes
18+
uses: trilom/[email protected]
19+
with:
20+
output: ' '
21+
- name: Run editorconfig-checker
22+
run: npx editorconfig-checker ${{ steps.get_file_changes.outputs.files }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.idea
1+
.idea

0 commit comments

Comments
 (0)