feat(ci): only run certain tests on change

This commit is contained in:
Barrett Ruth 2025-09-18 23:04:40 -04:00
parent f64b778835
commit abfa9011f7
2 changed files with 63 additions and 0 deletions

View file

@ -6,9 +6,32 @@ on:
- main
jobs:
changes:
runs-on: ubuntu-latest
outputs:
lua: ${{ steps.changes.outputs.lua }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
lua:
- 'lua/**'
- 'spec/**'
- 'plugin/**'
- 'after/**'
- 'ftdetect/**'
- '*.lua'
- '.luarc.json'
- 'stylua.toml'
- 'selene.toml'
build:
name: Run tests
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.lua == 'true' }}
strategy:
matrix:
neovim_version: ['nightly', 'stable']