Skip to content

Commit 2d8cb3c

Browse files
authored
Create batch-lint.yml
1 parent d228990 commit 2d8cb3c

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/batch-lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Batch File Check
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.bat'
7+
pull_request:
8+
paths:
9+
- '**.bat'
10+
11+
jobs:
12+
check-batch:
13+
runs-on: windows-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Validate batch files
19+
run: |
20+
for %%f in (*.bat) do (
21+
echo Validating %%f
22+
cmd /c "call %%f" || echo %%f failed to run
23+
)
24+
shell: cmd

0 commit comments

Comments
 (0)