Skip to content

feat: support glob pattern #121

feat: support glob pattern

feat: support glob pattern #121

Workflow file for this run

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