fix: start working on new tree-sitter highlights #59
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: | |
tree-sitter: | |
name: tree-sitter | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/[email protected] | |
with: | |
crate: tree-sitter-cli | |
version: latest | |
- name: Generate grammar | |
run: make generate | |
- name: Run tests | |
run: tree-sitter test | |
docgen: | |
name: X64-ubuntu | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- run: date +%F > todays-date | |
- name: Restore cache for today's nightly. | |
uses: actions/cache@v2 | |
with: | |
path: _neovim | |
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }} | |
- name: Prepare | |
run: | | |
mkdir -p ~/.local/share/nvim/site/pack/vendor/start | |
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: Build parser | |
run: make dist | |
- name: Run tests | |
run: | | |
curl -OL https://raw.githubusercontent.com/norcalli/bot-ci/master/scripts/github-actions-setup.sh | |
source github-actions-setup.sh nightly-x64 | |
nvim --headless --noplugin \ | |
-u tests/minimal_init.vim \ | |
-c "PlenaryBustedDirectory lua/tests/ {minimal_init = 'tests/minimal_init.vim'}" |