perf(metrics): Improve Performance for Inserting/Deleting Large Numbers of Lines in Buffer #8
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: CI | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
stylua: | |
name: Check code style | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | |
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination reposito | |
- uses: JohnnyMorganz/stylua-action@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version: latest | |
args: --config-path=.stylua.toml ./lua ./tests ./plugin | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "style(format): fix code style" | |
branch: ${{ github.ref }} | |
- uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
selene: | |
name: Lint code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: NTBBloodbath/selene-action@v1.0.0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --color always ./lua ./tests ./plugin | |
tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
neovim_version: ["v0.10.1", "nightly"] | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 plenary | |
run: | | |
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: Setup neovim | |
uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: ${{ matrix.neovim_version }} | |
- name: Run tests | |
run: | | |
nvim --headless --noplugin -u tests/minimal.vim -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}" |