Skip to content

Commit eabdfbd

Browse files
committed
Add CI job to test exit status in help commands
1 parent 18bbf85 commit eabdfbd

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.github/workflows/help_exit.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Help-Exit
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'eask'
9+
- '**.yml'
10+
- lisp/**
11+
- cmds/**
12+
- src/**
13+
- test/**
14+
pull_request:
15+
branches:
16+
- master
17+
paths-ignore:
18+
- '**.md'
19+
workflow_dispatch:
20+
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
test:
27+
runs-on: ${{ matrix.os }}
28+
continue-on-error: ${{ matrix.experimental }}
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
os: [ubuntu-latest, macos-latest, windows-latest]
33+
emacs-version:
34+
- 26.3
35+
- 27.2
36+
- 28.2
37+
- 29.4
38+
- 30.1
39+
experimental: [false]
40+
include:
41+
- os: ubuntu-latest
42+
emacs-version: snapshot
43+
experimental: true
44+
- os: macos-latest
45+
emacs-version: snapshot
46+
experimental: true
47+
- os: windows-latest
48+
emacs-version: snapshot
49+
experimental: true
50+
exclude:
51+
- os: macos-latest
52+
emacs-version: 26.3
53+
- os: macos-latest
54+
emacs-version: 27.2
55+
56+
steps:
57+
- uses: jcs090218/setup-emacs@master
58+
with:
59+
version: ${{ matrix.emacs-version }}
60+
61+
- uses: actions/checkout@v4
62+
63+
- name: Prepare Eask (Unix)
64+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
65+
run: |
66+
chmod -R 777 ./
67+
.github/scripts/setup-eask
68+
69+
- name: Prepare Eask (Windows)
70+
if: matrix.os == 'windows-latest'
71+
run: .github/scripts/setup-eask.ps1
72+
73+
- name: Testing...
74+
run: |
75+
make command-help-exit

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ command-config:
3232
command-local:
3333
./test/commands/local/run.sh
3434

35+
# new tests which check missing args not covered by existing tests
36+
command-help-exit: command-bump command-concat command-docs command-eval command-format command-info command-init command-lint command-recipe command-run command-source
37+
3538
command-analyze:
3639
./test/commands/analyze/dsl/run.sh
3740
./test/commands/analyze/metadata/run.sh

0 commit comments

Comments
 (0)