diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ec13279..c1d47877 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,10 +13,29 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: dorny/paths-filter@v2 + id: source-files-filter + with: + filters: | + source-files: + - 'lua/**' + - 'plugin/**' + - 'tests/**' + + - uses: Ana06/get-changed-files@v2.2.0 + id: source-files + continue-on-error: true + with: + # Format of the steps output context. + # Can be 'space-delimited', 'csv', or 'json'. + # Default: 'space-delimited' + format: 'space-delimited' + - uses: rhysd/action-setup-vim@v1 with: neovim: true version: ${{ matrix.nvim-versions }} - name: run tests + if: steps.source-files-filter.outputs.source-files == 'true' run: make test