-
Notifications
You must be signed in to change notification settings - Fork 135
89 lines (74 loc) · 2.3 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Unit tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
TERM: xterm-256color
on:
pull_request:
branches:
- main
paths:
- "tests/**"
- "share/**"
- "zinit*.zsh"
- ".github/workflows/tests.yaml"
push:
branches:
- main
workflow_dispatch:
jobs:
zunit-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["macos-latest","ubuntu-latest"]
fail-fast: false
steps:
- name: checkout ${{ github.repository }}
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install homebrew
id: setup-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: "install musl"
if: runner.os == 'Linux'
run: |
sudo apt-get install --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
- name: "install dependencies"
id: install-deps
run: |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
brew install --force --overwrite autoconf automake binutils byacc cmake coreutils gettext gnu-sed libevent libtool libuv lua [email protected] make ncurses pkg-config texinfo unzip xz zsh
brew link --force --overwrite ncurses
- name: "install zunit"
id: install-zunit
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/"
- 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: "commands"
run: zunit run tests/commands.zunit
- name: "ices"
run: zunit run tests/ices.zunit
- name: "snippets"
run: zunit run tests/snippets.zunit