-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (26 loc) · 1010 Bytes
/
push_audit.yml
File metadata and controls
31 lines (26 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Push Audit
on: push
jobs:
textformat:
name: EditorConfig audit
runs-on: ubuntu-latest
steps:
- name: CheckoutCode
uses: actions/checkout@v2
with:
# 0: fetch all history for all tags/branches.
# EditorConfig/Action needs all history in order to determine changed
# files to support ALWAYS_LINT_ALL_FILES: false.
fetch-depth: 0
- name: Configure safe.directory # Workaround permission issue
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
# Verify changed files conform to .editorconfig
- name: EditorConfig-Action
uses: FarzamMohammadi/EditorConfig-Action@master
env:
# Only lint files changed in the push.
ALWAYS_LINT_ALL_FILES: false
# Automatic error fixing not yet supported by EditorConfig-Action.
# Forced off to avoid unintentionally enabling when upgrading to
# new version.
EC_FIX_ERROR: false