add a solution for debugging init.lua files. #121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test that lua files are generated from ntangle file | |
on: [push, pull_request] | |
jobs: | |
Check-generated: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup neovim | |
uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: 'nightly' | |
- name: Prepare | |
run: | | |
mkdir -p ~/.local/share/nvim/site/pack/vendor/start | |
git clone --depth 1 https://github.com/jbyuki/ntangle.nvim ~/.local/share/nvim/site/pack/vendor/start/ntangle.nvim | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- name: Generate and diff | |
run: | | |
nvim --headless -c "lua require'ntangle'.tangle_all()" -c "exit" | |
git diff --exit-code -- lua |