2021-01-07 09:12:57 +01:00
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
push:
|
2021-01-07 09:21:04 +01:00
|
|
|
branches: [ main ]
|
2021-01-07 09:12:57 +01: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
|
|
|
|
run: make bootstrap
|
|
|
|
env:
|
|
|
|
DOTFILES_CI: 1
|
2022-04-28 16:58:00 +02:00
|
|
|
- name: Install neovim
|
|
|
|
uses: rhysd/action-setup-vim@v1
|
|
|
|
with:
|
|
|
|
neovim: true
|
2022-04-28 17:21:55 +02:00
|
|
|
- name: Install packer
|
|
|
|
run: git clone https://github.com/wbthomason/packer.nvim /share/nvim/site/pack/packer/start/packer.nvim
|
2022-04-28 16:58:00 +02:00
|
|
|
- name: Run neovim checks
|
2022-04-28 16:59:49 +02:00
|
|
|
run: make check_neovim
|
2022-04-28 16:58:00 +02:00
|
|
|
env:
|
|
|
|
DOTFILES_CI: 1
|
2021-01-07 09:12:57 +01:00
|
|
|
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" | make create_personal_ssh_github_key
|
|
|
|
env:
|
|
|
|
DOTFILES_CI: 1
|
2022-04-28 16:00:44 +02:00
|
|
|
stylua:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run stylua
|
|
|
|
uses: JohnnyMorganz/stylua-action@1.0.0
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
args: --check .
|