zsh: Disable the unused plugin #1418
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: InstallTest | |
on: [push] | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-latest | |
container: ubuntu:latest | |
steps: | |
- name: Install required packages | |
run: apt-get update && apt-get install -y git sudo | |
- uses: actions/checkout@v4 | |
- name: fatal unsafe repository (REPO is owned by someone else) | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Install dotfiles | |
run: install_scripts/dotsinstaller.sh install | |
fedora: | |
runs-on: ubuntu-latest | |
container: fedora:latest | |
steps: | |
- name: Install required packages | |
run: dnf clean all && dnf install -y git sudo | |
- uses: actions/checkout@v4 | |
- name: fatal unsafe repository (REPO is owned by someone else) | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Install dotfiles | |
run: install_scripts/dotsinstaller.sh install | |
arch: | |
runs-on: ubuntu-latest | |
container: archlinux:latest | |
steps: | |
- name: Update packages | |
run: pacman -Syyu --noconfirm | |
- name: Install required packages | |
run: pacman -S --noconfirm git sudo | |
- uses: actions/checkout@v4 | |
- name: fatal unsafe repository (REPO is owned by someone else) | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Install dotfiles | |
run: install_scripts/dotsinstaller.sh install | |
- name: Add user | |
run: useradd builduser -m | |
- name: Add sudoer | |
run: echo 'builduser ALL=(ALL) ALL' >> /etc/sudoers | |
- name: Change password | |
run: passwd -d builduser | |
- name: Install arch software | |
run: sudo -u builduser bash -c 'install_scripts/arch-extra-setup.sh' | |
- name: Install zsh plugins | |
run: zsh | |
shell: zsh -li --rcs {0} | |
env: | |
TERM: screen-256color | |
ZSHRC_CI_TEST: "true" | |
- name: Install neovim plugins | |
run: ~/.local/share/zsh/zinit/plugins/neovim---neovim/nvim-linux64/bin/nvim --headless -c 'lua require("lazy").sync({wait = true})' -c 'qall' | |
- name: Install other(vim/tmux) plugins | |
run: EDITOR=~/.local/share/zsh/zinit/plugins/neovim---neovim/nvim-linux64/bin/nvim plugupdate | |
shell: zsh -li --rcs {0} | |
env: | |
TERM: screen-256color | |
lint: | |
runs-on: ubuntu-latest | |
container: archlinux:latest | |
steps: | |
- name: Update packages | |
run: pacman -Syyu --noconfirm | |
- name: Install packages for install repository | |
run: pacman -S --noconfirm git sudo | |
- uses: actions/checkout@v4 | |
- name: Install required packages | |
run: pacman -S --noconfirm shellcheck selene | |
- name: Execute shellcheck(zsh) | |
run: test $(shellcheck -f gcc ~/.config/zsh/.zshrc ~/.config/zsh/rc/* | grep -v "SC1036\|SC1056\|SC1070\|SC1072\|SC1073\|SC1083\|SC2034\|SC2139\|SC2148\|SC1090\|SC1117\|SC2206\|SC1009\|SC2016\|SC2046\|SC2154" | tee -a /dev/stderr | wc -l) -le 1 | |
- name: Execute shellcheck(installer) | |
run: test $(git ls-files | grep "\.sh$" | xargs shellcheck -f gcc | grep -v "SC2086\|SC2046\|SC1090\|SC2034\|SC2005\|SC2154\|SC1091" | tee -a /dev/stderr | wc -l) -le 0 | |
- name: Execute luacheck | |
run: selene -q . |