From 7a3712227135dc4aa30222d8d7957ae981d129f0 Mon Sep 17 00:00:00 2001 From: Felipe Lema Date: Fri, 11 Aug 2023 13:56:48 -0400 Subject: [PATCH 1/4] run tests only on files under source directories --- .github/workflows/test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ec13279..967e96ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,10 +13,28 @@ 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 + id: source-files + 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 From a3ce184a445ebde005909798a477ef5f4acc49f8 Mon Sep 17 00:00:00 2001 From: Felipe Lema Date: Fri, 11 Aug 2023 16:07:19 -0400 Subject: [PATCH 2/4] "The head commit for this pull_request event is not ahead of the base commit" --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 967e96ad..e3e26067 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,7 @@ jobs: - uses: jitterbit/get-changed-files@v1 id: source-files + continue-on-error: true with: # Format of the steps output context. # Can be 'space-delimited', 'csv', or 'json'. From 12ef935425e9392bd36f5b6229d15c7a2b5a98a9 Mon Sep 17 00:00:00 2001 From: mohsen <36933074+smoka7@users.noreply.github.com> Date: Sat, 12 Aug 2023 05:05:01 +0000 Subject: [PATCH 3/4] Update .github/workflows/test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e3e26067..b0151210 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: - 'plugin/**' - 'tests/**' - - uses: jitterbit/get-changed-files@v1 + - uses: Ana06/get-changed-files@v2 id: source-files continue-on-error: true with: From 4d8b89a7f653be03f07d927e1ccbe92ac10022a7 Mon Sep 17 00:00:00 2001 From: mohsen <36933074+smoka7@users.noreply.github.com> Date: Sat, 12 Aug 2023 05:06:42 +0000 Subject: [PATCH 4/4] Update .github/workflows/test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0151210..c1d47877 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: - 'plugin/**' - 'tests/**' - - uses: Ana06/get-changed-files@v2 + - uses: Ana06/get-changed-files@v2.2.0 id: source-files continue-on-error: true with: