Skip to content

Commit c3c957a

Browse files
committed
CI: support gem test for Windows
Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
1 parent ab292a3 commit c3c957a

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
ruby: ['3.4', '3.3', '3.2']
3333
# macOS is excluded because of the difficulty in assuming a macOS shell behavior.
3434
os: ['ubuntu-latest', 'windows-latest']
35+
include:
36+
- os: ubuntu-latest
37+
shell: bash
38+
- os: windows-latest
39+
shell: cmd
3540
runs-on: ${{ matrix.os }}
3641
name: Gem with Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
3742
steps:
@@ -43,5 +48,11 @@ jobs:
4348
bundler-cache: true
4449
- name: Install
4550
run: rake install
46-
- name: Test command
51+
- name: Test command (bash)
52+
if: ${{ matrix.shell == 'bash' }}
4753
run: test/script/command-test.bash
54+
shell: bash
55+
- name: Test command (cmd)
56+
if: ${{ matrix.shell == 'cmd' }}
57+
run: test/script/command-test.bat
58+
shell: cmd

test/script/command-test.bat

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@echo on
2+
call tailcheck --version || exit /b 1
3+
4+
@echo on
5+
call tailcheck --help || exit /b 1
6+
7+
@echo on
8+
call tailcheck test/data/pos_normal || exit /b 1
9+
10+
@echo on
11+
call tailcheck test/data/pos_normal test/data/pos_duplicate_unwatched_path && exit /b 1
12+
13+
@echo on
14+
call tailcheck --follow_inodes test/data/pos_follow_inodes_normal || exit /b 1

0 commit comments

Comments
 (0)