Skip to content

Commit 174cc30

Browse files
authored
chore: Ensure LF line-endings on Windows (#7)
When GitHub Actions checks out code on a Windows runner, it converts the line endings to CRLF, this causes Prettier to think that the code is not formatted correctly on Windows, this commit should prevent that from happening.
1 parent 9c8bb7a commit 174cc30

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text eol=lf
2+
package-lock.json -diff

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
paths-ignore:
88
- .editorconfig
9+
- .gitattributes
910
- .gitignore
1011
- .prettierignore
1112
- action.yaml
@@ -38,6 +39,7 @@ jobs:
3839

3940
dogfood-linux:
4041
name: Dogfood (ubuntu-latest)
42+
needs: [ verify ]
4143
runs-on: ubuntu-latest
4244
steps:
4345
- name: Checkout code
@@ -57,6 +59,7 @@ jobs:
5759
5860
dogfood-windows:
5961
name: Dogfood (windows-latest)
62+
needs: [ verify ]
6063
runs-on: windows-latest
6164
steps:
6265
- name: Checkout code

.github/workflows/pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
paths-ignore:
88
- .editorconfig
9+
- .gitattributes
910
- .gitignore
1011
- .prettierignore
1112
- action.yaml

0 commit comments

Comments
 (0)