aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2024-11-26 15:27:52 -0500
committerJames McCoy <jamessan@jamessan.com>2024-12-03 06:31:09 -0500
commit05dd41f3e911b18b9e48180715a37abbb02266d0 (patch)
tree4e803a2de4c3b6276cde11de6b69a700b4209442
parent747e84a256036927585ce07d1162ef7ab73d4fd2 (diff)
downloadrneovim-05dd41f3e911b18b9e48180715a37abbb02266d0.tar.gz
rneovim-05dd41f3e911b18b9e48180715a37abbb02266d0.tar.bz2
rneovim-05dd41f3e911b18b9e48180715a37abbb02266d0.zip
ci(test): remove the .git directory for Linux
Tests should not rely on being run inside a git clone, so the Linux builds cover this use case. The macOS builds will continue running with the .git directory so there's still unix-ish coverage within a git clone.
-rw-r--r--.github/workflows/test.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 7320c4ad81..106f77ea00 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -145,6 +145,10 @@ jobs:
sudo cpanm -n Neovim::Ext || cat "$HOME/.cpanm/build.log"
perl -W -e 'use Neovim::Ext; print $Neovim::Ext::VERSION'
+ - name: Remove .git directory
+ if: ${{ matrix.build.os == 'ubuntu' }}
+ run: cmake -E rm -rf -- .git
+
- name: Build third-party deps
run: |
cmake -S cmake.deps --preset ci -D CMAKE_BUILD_TYPE=Debug ${{ matrix.build.deps_flags }}