-
Notifications
You must be signed in to change notification settings - Fork 0
134 lines (129 loc) · 3.79 KB
/
Copy pathci.yml
File metadata and controls
134 lines (129 loc) · 3.79 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: CI
on: [push, pull_request]
jobs:
Lint:
name: Lint
runs-on: ubuntu-latest
container:
image: ubuntu:latest
env:
DEBIAN_FRONTEND: noninteractive
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install required components
run: apt-get -y update && apt-get -y upgrade && apt-get -y install python3 python3-pip
- name: Install shellcheck
run: apt-get -y install shellcheck
- name: Install vint
run: pip3 install vim-vint
- name: Execute shellcheck (bootstrap.sh)
run: shellcheck etc/bootstrap.sh
- name: Execute vint
shell: bash
run: vint .config/nvim/init.vim{,.d/*.vim}
Alpine:
name: Alpine Linux (${{ matrix.tag }})
runs-on: ubuntu-latest
container:
image: alpine:${{ matrix.tag }}
continue-on-error: ${{ matrix.failable }}
strategy:
fail-fast: false
matrix:
tag: [latest]
failable: [false]
include:
- tag: edge
failable: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install required components
run: apk update && apk upgrade && apk add shadow zsh git tmux neovim nodejs npm fzf
- name: chsh
shell: sh
run: |
passwd -d $(whoami)
chsh -s $(command -v zsh)
- name: Install dotfiles
run: ./bin/install-dotfiles --no-restart-shell
Arch:
name: Arch Linux
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install required components
run: pacman -Syu --noconfirm zsh git tmux neovim nodejs npm fzf
- name: chsh
shell: sh
run: chsh -s $(command -v zsh)
- name: Install dotfiles
run: ./bin/install-dotfiles --no-restart-shell
Fedora:
name: Fedora (${{ matrix.tag }})
runs-on: ubuntu-latest
container:
image: fedora:${{ matrix.tag }}
continue-on-error: ${{ matrix.failable }}
strategy:
fail-fast: false
matrix:
tag: [latest]
failable: [false]
include:
- tag: rawhide
failable: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install required components
run: dnf -y upgrade && dnf -y install zsh git tmux neovim nodejs npm fzf
- name: chsh
shell: sh
run: usermod -s $(command -v zsh) $(whoami)
- name: Install dotfiles
run: ./bin/install-dotfiles --no-restart-shell
macOS:
name: macOS ${{ matrix.version }}
runs-on: macos-${{ matrix.version }}
strategy:
fail-fast: false
matrix:
version: ["10.15"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install required components
run: brew update && brew upgrade && brew install zsh git tmux neovim nodejs npm fzf
- name: chsh
shell: sh
run: sudo chsh -s $(command -v zsh) $(whoami)
- name: Install dotfiles
run: ./bin/install-dotfiles --no-restart-shell
Ubuntu:
name: Ubuntu (${{ matrix.tag }})
runs-on: ubuntu-latest
container:
image: ubuntu:${{ matrix.tag }}
env:
DEBIAN_FRONTEND: noninteractive
continue-on-error: ${{ matrix.failable }}
strategy:
fail-fast: false
matrix:
tag: [focal, latest]
failable: [false]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install required components
run: apt-get -y update && apt-get -y upgrade && apt-get -y install zsh git tmux neovim nodejs npm fzf
- name: chsh
shell: sh
run: chsh -s $(command -v zsh)
- name: Install dotfiles
run: ./bin/install-dotfiles --no-restart-shell