Skip to content

Commit 5e3c653

Browse files
Create editorconfig-check.bak
Signed-off-by: LUIZ HAMILTON ROBERTO DA SILVA <[email protected]>
1 parent 2f2b5ec commit 5e3c653

1 file changed

Lines changed: 114 additions & 0 deletions

File tree

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: EditorConfig Check
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
paths:
7+
- '.editorconfig'
8+
- '**/.editorconfig'
9+
- '**/*.ps1'
10+
- '**/*.psm1'
11+
- '**/*.psd1'
12+
- '**/*.vbs'
13+
- '**/*.hta'
14+
- '**/*.xml'
15+
- '**/*.json'
16+
- '**/*.jsonc'
17+
- '**/*.md'
18+
- '**/*.rst'
19+
- '**/*.txt'
20+
- '**/*.csv'
21+
- '**/*.log'
22+
- '**/*.sh'
23+
- '**/*.bash'
24+
- '**/*.bat'
25+
- '**/*.cmd'
26+
- '**/*.html'
27+
- '**/*.yml'
28+
- '**/*.yaml'
29+
- '**/*.toml'
30+
- '**/*.ini'
31+
- '**/*.conf'
32+
- '**/*.config'
33+
- '**/*.nuspec'
34+
- '**/*.csproj'
35+
- '**/*.reg'
36+
- '**/*.env'
37+
- '**/.eslintrc'
38+
- '**/.eslintrc.json'
39+
- '**/.stylelintrc'
40+
- '**/.prettierrc'
41+
- '**/.prettierrc.json'
42+
- '**/*.lock'
43+
44+
pull_request:
45+
branches: [main, develop]
46+
paths:
47+
- '.editorconfig'
48+
- '**/.editorconfig'
49+
- '**/*.ps1'
50+
- '**/*.psm1'
51+
- '**/*.psd1'
52+
- '**/*.vbs'
53+
- '**/*.hta'
54+
- '**/*.xml'
55+
- '**/*.json'
56+
- '**/*.jsonc'
57+
- '**/*.md'
58+
- '**/*.rst'
59+
- '**/*.txt'
60+
- '**/*.csv'
61+
- '**/*.log'
62+
- '**/*.sh'
63+
- '**/*.bash'
64+
- '**/*.bat'
65+
- '**/*.cmd'
66+
- '**/*.html'
67+
- '**/*.yml'
68+
- '**/*.yaml'
69+
- '**/*.toml'
70+
- '**/*.ini'
71+
- '**/*.conf'
72+
- '**/*.config'
73+
- '**/*.nuspec'
74+
- '**/*.csproj'
75+
- '**/*.reg'
76+
- '**/*.env'
77+
- '**/.eslintrc'
78+
- '**/.eslintrc.json'
79+
- '**/.stylelintrc'
80+
- '**/.prettierrc'
81+
- '**/.prettierrc.json'
82+
- '**/*.lock'
83+
84+
workflow_dispatch:
85+
86+
jobs:
87+
editorconfig-check:
88+
name: 🔍 EditorConfig Lint
89+
runs-on: ubuntu-latest
90+
91+
steps:
92+
- name: 📦 Checkout Repository
93+
uses: actions/[email protected]
94+
95+
- name: 📥 Download EditorConfig Checker
96+
shell: bash
97+
run: |
98+
wget -q https://github.com/editorconfig-checker/editorconfig-checker/releases/latest/download/ec-linux-amd64.tar.gz
99+
mkdir ec-checker
100+
tar -xzf ec-linux-amd64.tar.gz -C ec-checker
101+
102+
BIN=$(find ec-checker -type f -executable -name "ec*" | head -n 1)
103+
if [ -n "$BIN" ]; then
104+
chmod +x "$BIN"
105+
sudo mv "$BIN" /usr/local/bin/ec
106+
else
107+
echo "❌ Error: ec binary not found after extraction"
108+
exit 1
109+
fi
110+
111+
- name: ▶️ Run EditorConfig Checker
112+
run: |
113+
ec --version
114+
ec --disable-logs || true # Avoid failure on style warnings

0 commit comments

Comments
 (0)