-
-
Notifications
You must be signed in to change notification settings - Fork 35
60 lines (57 loc) · 1.79 KB
/
test-suite.yml
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
name: test-suite
on:
pull_request:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/[email protected]
- name: Install ZSH
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get update
sudo apt-get install zsh
- name: ZSH lint per file
shell: zsh {0}
run: |
for file in ${{ github.workspace }}/**/*.zsh; do
echo "Now linting $file"...
zsh -n "$file"
echo "Success! 🎉"
done
- name: Install Test - No Branch - Master
shell: zsh {0}
run: |
# Ensure Zap not already installed
rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}/zap"
# Init
zsh ${{ github.workspace }}/install.zsh
source "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh"
# Test Environment Variable
[[ -d "$ZAP_DIR" ]]
# Test Plugin Installation
plug "wintermi/zsh-lsd"
git -C "${ZAP_DIR}/plugins/zsh-lsd/" status || exit 1
- name: Install Test - Branch "release-v1"
shell: zsh {0}
run: |
# Ensure Zap not already installed
rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}/zap"
# Init
zsh ${{ github.workspace }}/install.zsh --branch release-v1
source "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh"
# Test Environment Variable
[[ -d "$ZAP_DIR" ]]
# Test Plugin Installation
plug "wintermi/zsh-lsd"
git -C "${ZAP_DIR}/plugins/zsh-lsd/" status || exit 1