Skip to content

Commit 0c86526

Browse files
committed
test both bash and zsh in tests.yml
1 parent ef3c115 commit 0c86526

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
- if: ${{ matrix.platform == 'ubuntu-latest' }}
1313
name: Install Linux deps
1414
run: |
15-
sudo apt install gettext python3 man-db psmisc nano tree bsdmainutils
15+
sudo apt install gettext man-db psmisc nano tree bsdmainutils zsh
1616
# - if: ${{ matrix.platform == 'macos-latest' }}
1717
# name: Install macOS deps
1818
# run: |
1919
# brew install coreutils pstree tree man-db
2020
- name: Run the tests
2121
run: |
22-
make tests
22+
make tests-bash && make tests-zsh

Makefile

+5-10
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,14 @@ check-verbose: clean
4545
./"game shell (1).sh" -Dq -c 'gsh systemconfig; for _ in $$(seq 42); do gsh auto --abort; done; gsh stat'
4646

4747
## run all the test.sh and auto.sh scripts
48-
tests: clean
48+
tests-bash: clean
4949
./utils/archive.sh -at -N "game shell (1)"
50-
./"game shell (1).sh" -dq -c 'gsh systemconfig; for _ in $$(seq 42); do gsh goal|cat; gsh test --abort; gsh auto --abort; done; gsh stat'
50+
./"game shell (1).sh" -Bdq -c 'gsh systemconfig; for _ in $$(seq 42); do gsh goal|cat; gsh test --abort; gsh auto --abort; done; gsh stat'
5151

52-
## run all the test.sh and auto.sh scripts, in french
53-
tests-fr: clean
54-
./utils/archive.sh -at -N "game shell (1)"
55-
./"game shell (1).sh" -dqL fr -c 'gsh systemconfig; for _ in $$(seq 42); do gsh goal|cat; gsh test --abort; gsh auto --abort; done; gsh stat'
56-
57-
## run all the test.sh and auto.sh scripts, in verbose mode
58-
tests-verbose: clean
52+
## run all the test.sh and auto.sh scripts
53+
tests-zsh: clean
5954
./utils/archive.sh -at -N "game shell (1)"
60-
./"game shell (1).sh" -RDq -c 'gsh systemconfig; for _ in $$(seq 42); do gsh goal|cat; gsh test --abort; gsh auto --abort; done; gsh stat'
55+
./"game shell (1).sh" -Zdq -c 'gsh systemconfig; for _ in $$(seq 42); do gsh goal|cat; gsh test --abort; gsh auto --abort; done; gsh stat'
6156

6257
clean:
6358
rm -rf i18n/*~ locale gameshell.tgz gameshell.sh gameshell-save.sh scripts/boxes-data.awk

0 commit comments

Comments
 (0)