1 parent 313a4ba commit 50b68c0Copy full SHA for 50b68c0
3 files changed
.github/workflows/ci.yml
@@ -17,6 +17,4 @@ jobs:
17
sudo apt-get install -y zsh
18
19
- name: Run verification commands
20
- run: |
21
- for test in tests/*.sh; do sh "$test"; done
22
- zsh -n zsh/zshrc
+ run: scripts/verify.sh
DEVELOPMENT.md
@@ -21,8 +21,7 @@ exercises the changed behavior.
- For repository-wide shell checks, run:
23
```sh
24
-for test in tests/*.sh; do sh "$test"; done
25
-zsh -n zsh/zshrc
+scripts/verify.sh
26
```
27
28
Prefer testing dotfiles contracts such as loader behavior, public environment
scripts/verify.sh
@@ -0,0 +1,10 @@
1
+#!/bin/sh
2
+set -eu
3
+
4
+repo_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
5
6
+for test in "$repo_root"/tests/*.sh; do
7
+ sh "$test"
8
+done
9
10
+zsh -n "$repo_root/zsh/zshrc"
0 commit comments