diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2020-12-09 22:40:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-09 16:40:17 -0500 |
| commit | 7330e5d2282e6916f87188ab899096ba516b9f3d (patch) | |
| tree | 1d8b1d7d627f9fa20c90019966f9023c4132fe96 /.github/workflows/ci.yml | |
| parent | 8ae1f7f94bcbd1fff55e1656998079d3d6019d6b (diff) | |
ci fix: don't cache git repos (#320)
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28b02af..11e015e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,17 +14,13 @@ jobs: with: path: | _neovim - ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim - ~/.local/share/nvim/site/pack/vendor/start/popup.nvim key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }} - name: Prepare run: | - test -d ~/.local/share/nvim/site/pack/vendor/start || { - mkdir -p ~/.local/share/nvim/site/pack/vendor/start - git clone https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim - git clone https://github.com/nvim-lua/popup.nvim ~/.local/share/nvim/site/pack/vendor/start/popup.nvim - } + mkdir -p ~/.local/share/nvim/site/pack/vendor/start + git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim + git clone --depth 1 https://github.com/nvim-lua/popup.nvim ~/.local/share/nvim/site/pack/vendor/start/popup.nvim ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start - name: Run tests @@ -44,8 +40,6 @@ jobs: with: path: | build - ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim - ~/.local/share/nvim/site/pack/vendor/start/popup.nvim key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }} - name: Prepare @@ -56,11 +50,9 @@ jobs: chmod +x nvim.appimage mv nvim.appimage ./build/nvim } - test -d ~/.local/share/nvim/site/pack/vendor/start || { - mkdir -p ~/.local/share/nvim/site/pack/vendor/start - git clone https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim - git clone https://github.com/nvim-lua/popup.nvim ~/.local/share/nvim/site/pack/vendor/start/popup.nvim - } + mkdir -p ~/.local/share/nvim/site/pack/vendor/start + git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim + git clone --depth 1 https://github.com/nvim-lua/popup.nvim ~/.local/share/nvim/site/pack/vendor/start/popup.nvim ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start - name: Run tests |
