mirror of
https://github.com/php/doc-ru.git
synced 2025-07-22 18:26:31 +00:00
Добавление проверки EditorConfig в CI
Closes GH-10
This commit is contained in:
@ -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
22
.github/workflows/editorconfig.yml
vendored
Normal 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 }}
|
Reference in New Issue
Block a user