Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run tests only on files under source directories #26

Merged
merged 4 commits into from
Aug 12, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: jitterbit/get-changed-files@v1
smoka7 marked this conversation as resolved.
Show resolved Hide resolved
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