Добавление проверки EditorConfig в CI

Closes GH-10
This commit is contained in:
Alexey Pyltsyn
2021-01-05 21:19:26 +03:00
parent 027fe4df08
commit 36b8f6b09b
4 changed files with 84 additions and 62 deletions

View File

@ -11,5 +11,5 @@ indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.xml]
[*.{xml,ent}]
indent_size = 1

22
.github/workflows/editorconfig.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Check EditorConfig
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get changed files
id: get_file_changes
uses: trilom/file-changes-action@v1.2.3
with:
output: ' '
- name: Run editorconfig-checker
run: npx editorconfig-checker ${{ steps.get_file_changes.outputs.files }}