refactor: get line and column from context in get_prefix #46
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: Run tests | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
neovim_version: ["nightly", "stable"] | |
steps: | |
- uses: actions/checkout@v4.2.2 | |
- name: Set up dependencies | |
run: | | |
# ripgrep is (of course) a dependency | |
which rg || { | |
sudo apt-get install ripgrep | |
} | |
- name: Run tests | |
uses: nvim-neorocks/nvim-busted-action@v1.1.0 | |
with: | |
nvim_version: ${{ matrix.neovim_version }} | |
luarocks_version: "3.11.1" | |
- uses: pnpm/action-setup@v4.0.0 | |
- uses: actions/setup-node@v4.1.0 | |
with: | |
node-version-file: .nvmrc | |
cache: "pnpm" | |
- run: pnpm install | |
- name: Install dependencies | |
uses: cypress-io/github-action@v6 | |
with: | |
runTests: false | |
# https://github.com/cypress-io/github-action/blob/bff0ae58f02476fbc4b13229bcaac2767f645b3e/README.md#pnpm-workspaces | |
- name: initialize neovim dependencies | |
run: | | |
echo "Initializing neovim dependencies..." | |
cd integration-tests/test-environment/ | |
# execute the lazy installation script and exit right away | |
nvim -u test-setup.lua -c "exit" | |
- name: Cypress test | |
uses: cypress-io/github-action@v6 | |
with: | |
install: false | |
command: pnpm cy:run | |
- uses: actions/upload-artifact@v4.4.3 | |
# add the line below to store screenshots only on failures | |
# if: failure() | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: integration-tests/cypress/screenshots | |
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` |