ci: run zunit tests via gnu parallel

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
Vladislav Doster 2023-12-24 17:50:32 -06:00 committed by vladislav doster
parent d72be18525
commit d0b453907c

View file

@ -5,6 +5,7 @@ concurrency:
cancel-in-progress: true
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
TERM: xterm-256color
on:
@ -43,25 +44,21 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get update --yes
sudo apt-get install --yes \
sudo apt-get install --no-install-recommends --yes \
autoconf automake autotools-dev \
build-essential byacc\
cmake curl \
file \
gcc gettext glibc-source grep \
libc6 libc6-dev libevent-dev libncurses5-dev libncursesw5-dev libtool libuvc0 lua5.1 \
m4 \
ninja-build \
pkg-config \
unzip \
xz-utils \
zsh
xz-utils
- name: "install dependencies"
id: install-deps
run: |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew install --force --overwrite autoconf automake binutils byacc cmake coreutils curl gettext gnu-sed libevent libtool libuv lua lua@5.1 make ninja ncurses pkg-config texinfo unzip xz zsh
brew install --force --overwrite autoconf automake binutils byacc cmake coreutils curl gettext gnu-sed libevent libtool libuv lua lua@5.1 make ncurses ninja parallel pkg-config texinfo unzip xz zsh
brew link --force --overwrite ncurses
- name: "install zunit"
@ -69,22 +66,14 @@ jobs:
run: |
mkdir -p "$HOME/.local/bin" && echo "$HOME/.local/bin" >> $GITHUB_PATH
git clone --depth 1 https://github.com/zdharma-continuum/zunit; cd ./zunit
zsh -c -l './build.zsh' && sudo chmod u+x ./zunit && cp ./zunit "$HOME/.local/bin/"
zsh -l -c './build.zsh' && sudo chmod u+x ./zunit && cp ./zunit "$HOME/.local/bin/"
- name: "commands"
run: zunit run tests/commands.zunit
- name: "plugins"
run: zunit run tests/plugins.zunit
- name: "gh-r"
run: zunit run tests/gh-r.zunit
- name: "annexes"
run: zunit run tests/annexes.zunit
- name: "ices"
run: zunit run tests/ices.zunit
- name: "snippets"
run: zunit run tests/snippets.zunit
- name: Run tests
shell: zsh {0}
run: |
command -p ls -1 ./tests/*zunit \
| parallel \
--jobs=4 \
--keep-order \
--line-buffer \
$HOME/.local/bin/zunit run