ci: force git to use LF on win to pass tests on linguist samples

This mitigates the problem that tokenizer uses regex
that matches platform-specific line endings

TestPlan:
 - go test ./internal/code-generator/generator \
	-run Test_GeneratorTestSuite -testify.m TestTokenizerOnATS

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
Alexander Bezzubov 2020-03-29 19:22:56 +02:00
parent 3ea961e5ab
commit 172486906a
No known key found for this signature in database
GPG Key ID: 8039F5787EFCD05D

View File

@ -13,6 +13,10 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- name: Set git on win to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout code
uses: actions/checkout@v2
- name: Test