Skip to content

Commit

Permalink
ci: use tui exec neovim to initialize neovim plugins for the tests
Browse files Browse the repository at this point in the history
This is to dogfood the implementation
  • Loading branch information
mikavilpas committed Nov 30, 2024
1 parent 3c83f5b commit c0e6bd9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,18 @@ jobs:
node-version-file: .nvmrc
cache: "pnpm"

- run: pnpm install
- run: pnpm test
- run: |
# install dependencies so we can build the project
pnpm install
pnpm build
# install the "tui" command so it's available for the next steps
pnpm install
- run: pnpm test
# need to work around https://github.com/cypress-io/github-action/issues/1246
- run: pnpm --filter integration-tests exec cypress install
- name: Preinstall neovim plugins
run: pnpm tui neovim exec "Lazy! sync"

- name: Cypress run
uses: cypress-io/github-action@v6.7.7
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"preinstall": "npx only-allow pnpm",
"markdownlint": "markdownlint-cli2 README.md",
"prettier": "prettier --check .",
"test": "vitest run"
"test": "vitest run",
"tui": "pnpm --filter=library build && pnpm --filter integration-tests exec tui"
},
"devDependencies": {
"@eslint/js": "9.16.0",
Expand Down

0 comments on commit c0e6bd9

Please sign in to comment.