From 172486906ac876ce3943181733d112c2da0ccaa1 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Sun, 29 Mar 2020 19:22:56 +0200 Subject: [PATCH] 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 --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ae3dd5..87a5764 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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