1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 19:32:25 +01:00

#2592: Fixes unit tests dependent on echo on windows (#2602)

Co-authored-by: Boy van Duuren <boy.van.duuren@rabobank.nl>
This commit is contained in:
Boy van Duuren
2023-09-08 06:18:25 +02:00
committed by GitHub
parent f49278cfaa
commit d6e11b59e7
5 changed files with 153 additions and 84 deletions

View File

@@ -247,7 +247,13 @@ jobs:
- name: Run tests
shell: bash
run: $BUILD_CMD test --locked --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}
run: |
if [[ ${{ matrix.job.os }} = windows-* ]]
then
powershell.exe -command "$BUILD_CMD test --locked --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}"
else
$BUILD_CMD test --locked --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}
fi
- name: Run bat
shell: bash