2021-01-07 08:12:57 +00:00
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
push:
|
2021-01-07 08:21:04 +00:00
|
|
|
branches: [ main ]
|
2021-01-07 08:12:57 +00:00
|
|
|
|
|
|
|
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
|
2022-05-05 14:59:53 +00:00
|
|
|
run: make bootstrap
|
2021-01-07 08:12:57 +00:00
|
|
|
env:
|
|
|
|
DOTFILES_CI: 1
|
2022-04-28 14:58:00 +00:00
|
|
|
- name: Install neovim
|
|
|
|
uses: rhysd/action-setup-vim@v1
|
|
|
|
with:
|
|
|
|
neovim: true
|
2022-04-28 15:21:55 +00:00
|
|
|
- name: Install packer
|
2022-04-28 16:00:36 +00:00
|
|
|
if: ${{ matrix.platform != 'windows-latest' }}
|
2022-04-28 15:53:35 +00:00
|
|
|
run: |
|
2022-04-28 16:00:36 +00:00
|
|
|
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"
|
2022-04-28 14:58:00 +00:00
|
|
|
- name: Run neovim checks
|
2022-05-05 14:59:53 +00:00
|
|
|
run: make check_neovim
|
2022-04-28 14:58:00 +00:00
|
|
|
env:
|
|
|
|
DOTFILES_CI: 1
|
2022-05-05 15:22:51 +00:00
|
|
|
- uses: actions/setup-python@v3
|
|
|
|
if: ${{ matrix.platform != 'windows-latest' }}
|
|
|
|
name: Setup python for bin tools
|
2022-05-05 14:13:37 +00:00
|
|
|
- name: Run tests
|
|
|
|
if: ${{ matrix.platform != 'windows-latest' }}
|
2022-05-05 14:17:47 +00:00
|
|
|
run: |
|
2022-05-05 14:59:53 +00:00
|
|
|
export PATH="$HOME/bin:$PATH"
|
2022-05-05 14:17:47 +00:00
|
|
|
make run_tests
|
2022-05-05 14:13:37 +00:00
|
|
|
env:
|
|
|
|
DOTFILES_CI: 1
|
2021-01-07 08:12:57 +00:00
|
|
|
create-key:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform: [ubuntu-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run key creation
|
2022-07-08 11:29:52 +00:00
|
|
|
run: echo "test\n\n\n\n\n\n\n\n" | make create_personal_ssh_keys
|
2021-01-07 08:12:57 +00:00
|
|
|
env:
|
|
|
|
DOTFILES_CI: 1
|
2022-04-28 14:00:44 +00:00
|
|
|
stylua:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run stylua
|
2023-08-02 21:10:15 +00:00
|
|
|
uses: JohnnyMorganz/stylua-action@v3
|
2022-04-28 14:00:44 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2023-08-02 21:10:15 +00:00
|
|
|
version: latest
|
2022-04-28 14:00:44 +00:00
|
|
|
args: --check .
|
2022-04-29 07:46:45 +00:00
|
|
|
luacheck:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-04-29 08:25:59 +00:00
|
|
|
- name: Install luacheck
|
|
|
|
run: sudo apt-get install -y lua-check
|
2022-04-29 07:46:45 +00:00
|
|
|
- name: Run luacheck
|
2022-04-29 08:25:59 +00:00
|
|
|
run: |
|
|
|
|
cd symlinks/config/nvim
|
|
|
|
luacheck .
|