Skip to content

Commit fd1b0ee

Browse files
committed
ci: set git config line endings before checkout
1 parent dd7c891 commit fd1b0ee

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.os }}
3030

3131
steps:
32+
- name: Set git to use LF
33+
run: |
34+
git config --global core.autocrlf false
35+
git config --global core.eol lf
36+
3237
- name: Checkout code
3338
uses: actions/checkout@v4
3439

@@ -70,6 +75,11 @@ jobs:
7075
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.os }}
7176

7277
steps:
78+
- name: Set git to use LF
79+
run: |
80+
git config --global core.autocrlf false
81+
git config --global core.eol lf
82+
7383
- name: Checkout code
7484
uses: actions/checkout@v4
7585

0 commit comments

Comments
 (0)