-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (74 loc) · 2.13 KB
/
main.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
name: CI
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
bootstrap:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Run bootstrap
run: make bootstrap
env:
DOTFILES_CI: 1
- name: Install neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
- name: Install packer
if: ${{ matrix.platform != 'windows-latest' }}
run: |
git clone https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
- name: Install packer on Windows
if: ${{ matrix.platform == 'windows-latest' }}
run: |
git clone https://github.com/wbthomason/packer.nvim "$env:LOCALAPPDATA\nvim-data\site\pack\packer\start\packer.nvim"
- name: Run neovim checks
run: make check_neovim
env:
DOTFILES_CI: 1
- uses: actions/setup-python@v3
if: ${{ matrix.platform != 'windows-latest' }}
name: Setup python for bin tools
- name: Run tests
if: ${{ matrix.platform != 'windows-latest' }}
run: |
export PATH="$HOME/bin:$PATH"
make run_tests
env:
DOTFILES_CI: 1
create-key:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Run key creation
run: echo "test\n\n\n\n\n\n\n\n" | make create_personal_ssh_keys
env:
DOTFILES_CI: 1
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run stylua
uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
luacheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install luacheck
run: sudo apt-get install -y lua-check
- name: Run luacheck
run: |
cd symlinks/config/nvim
luacheck .