Skip to content

Commit 1edf3df

Browse files
committed
fix: resolve CRLF line ending issues on Windows CI
1 parent 4891d9a commit 1edf3df

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.gitattributes

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Ensure consistent line endings across all platforms
2+
* text=auto eol=lf
3+
4+
# Force LF for source files
5+
*.ts text eol=lf
6+
*.js text eol=lf
7+
*.json text eol=lf
8+
*.md text eol=lf
9+
*.yml text eol=lf
10+
*.yaml text eol=lf
11+
12+
# Binary files
13+
*.png binary
14+
*.jpg binary
15+
*.ico binary

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
node-version: [18.x, 20.x]
1616

1717
steps:
18+
- name: Configure Git line endings
19+
run: git config --global core.autocrlf false
20+
1821
- uses: actions/checkout@v4
1922

2023
- name: Setup Node.js ${{ matrix.node-version }}

0 commit comments

Comments
 (0)