Skip to content

Commit

Permalink
build: tests and extras with lazy.minit
Browse files Browse the repository at this point in the history
  • Loading branch information
miikanissi committed Oct 11, 2024
1 parent 32f3c1b commit ba22197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ jobs:
./nvim.appimage --appimage-extract
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
- name: Run Tests
run: |
nvim --version
[ ! -d tests ] && exit 0
nvim --headless -u tests/init.lua -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/init.lua', sequential = true}"
run: ./scripts/tests.sh
extras:
runs-on: ubuntu-latest
needs:
Expand All @@ -68,8 +65,7 @@ jobs:
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
- uses: actions/checkout@v4
- name: Build Extras
run: |
nvim -u NONE -E -R --headless --cmd "set rtp^=." --cmd "packloadall" --cmd "lua require('modus-themes.extras').setup()" --cmd qa
run: ./scripts/extras.sh
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
3 changes: 3 additions & 0 deletions scripts/tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

nvim -l tests/minit.lua --minitest

0 comments on commit ba22197

Please sign in to comment.