Skip to content

Commit c3d66a4

Browse files
zhenglong1603damithc
authored andcommitted
gradle.yml: Add dos2unix installation
1 parent 4f772f8 commit c3d66a4

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/gradle.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,21 @@ jobs:
3434
- name: Build and check with Gradle
3535
run: ./gradlew check
3636

37-
- name: Perform IO redirection test (*NIX)
37+
- name: Install dos2unix on Linux
3838
if: runner.os == 'Linux'
39-
working-directory: ${{ github.workspace }}/text-ui-test
40-
run: ./runtest.sh
39+
run: sudo apt-get update && sudo apt-get install -y dos2unix
40+
41+
- name: Install dos2unix on macOS
42+
if: runner.os == 'macOS'
43+
run: brew install dos2unix
4144

42-
- name: Perform IO redirection test (MacOS)
43-
if: always() && runner.os == 'macOS'
44-
working-directory: ${{ github.workspace }}/text-ui-test
45+
- name: Perform IO redirection test (*NIX or macOS)
46+
if: runner.os == 'Linux' || runner.os == 'macOS'
47+
working-directory: ${{ github.workspace }}/text-ui-test
4548
run: ./runtest.sh
4649

4750
- name: Perform IO redirection test (Windows)
4851
if: always() && runner.os == 'Windows'
49-
working-directory: ${{ github.workspace }}/text-ui-test
52+
working-directory: ${{ github.workspace }}/text-ui-test
5053
shell: cmd
5154
run: runtest.bat

0 commit comments

Comments
 (0)