Skip to content

Commit

Permalink
chore: run tests only on files under source directories (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: mohsen <[email protected]>
  • Loading branch information
FelipeLema and smoka7 authored Aug 12, 2023
1 parent f579096 commit b1ca61b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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

0 comments on commit b1ca61b

Please sign in to comment.