Allow escaping with $$
#152
Workflow file for this run
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: Tests | |
on: [push, pull_request] | |
jobs: | |
unit_tests: | |
name: unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
nvim: [v0.9.1, nightly] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Envs | |
run: | | |
echo "VIM=~/.local/share/nvim/share/nvim/runtime" >> $GITHUB_ENV | |
echo "PATH=~/.local/share/nvim/bin:$PATH" >> $GITHUB_ENV | |
- name: Cache Dependencies | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local/share/nvim | |
key: ${{ runner.os }}-nvim-${{ matrix.nvim }} | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p ~/.local/share/nvim/ | |
curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.nvim }}/nvim-linux64.tar.gz" | tar xzf - --strip-components=1 -C ~/.local/share/nvim/ | |
git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter.git ~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter | |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim | |
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start | |
- name: Run tests | |
run: | | |
nvim --headless -c 'TSInstallSync python javascript lua rust go bash' -c 'q' | |
nvim --version | |
nvim --headless -c 'PlenaryBustedDirectory tests/' |