-
-
Notifications
You must be signed in to change notification settings - Fork 49
81 lines (76 loc) · 3.16 KB
/
install-test.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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 .