]> gitweb.fluxo.info Git - puppet-sshkeys_core.git/commitdiff
(maint) Allow git to use long paths in GitHub Actions
authorLuchian Nemes <luchian.nemes@puppet.com>
Tue, 10 Nov 2020 13:11:48 +0000 (15:11 +0200)
committerLuchian Nemes <luchian.nemes@puppet.com>
Tue, 10 Nov 2020 13:11:48 +0000 (15:11 +0200)
Due to unknown environment changes in GitHub Actions runners, we
encountered the following error:
`fatal: cannot create directory: Filename too long`

This commit allows git to use long paths in our GitHub Actions
workflows.

.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml
.github/workflows/static_code_analysis.yaml
.github/workflows/unit_tests_with_nightly_puppet_gem.yaml
.github/workflows/unit_tests_with_released_puppet_gem.yaml

index 16d4500f657251c8677db3ece38936600abede34..5bd0f50b7fac62ef72e8ef165d2463bbd60480c3 100644 (file)
@@ -7,7 +7,7 @@ on:
 
 jobs:
   daily_unit_tests_with_nightly_puppet_gem:
-    name: ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }} 
+    name: ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
     strategy:
       matrix:
         os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2016' ]
@@ -50,6 +50,7 @@ jobs:
 
       - name: Prepare testing environment with bundler
         run: |
+          git config --global core.longpaths true
           bundle config set system 'true'
           ${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
           bundle update --jobs 4 --retry 3
index 9b94bf8b4f1ae9cc919d0f5ee57ab5c218dfdd8d..0a1f42741c05aa8dc0740b726ea901744b439d6a 100644 (file)
@@ -28,7 +28,9 @@ jobs:
           ruby-version: ${{ env.ruby_version }}
 
       - name: Prepare testing environment with bundler
-        run: bundle update --jobs 4 --retry 3
+        run: |
+          git config --global core.longpaths true
+          bundle update --jobs 4 --retry 3
 
       - name: Run commits check
         run: bundle exec rake commits
index b408ee88e0564bf6b29e773417b7cbe4134de298..0b1afc020f1a62a986b6a7094662be64690e5843 100644 (file)
@@ -52,6 +52,7 @@ jobs:
 
       - name: Prepare testing environment with bundler
         run: |
+          git config --global core.longpaths true
           bundle config set system 'true'
           ${{ matrix.env_set_cmd }}PUPPET_GEM_VERSION=$(ruby -e 'puts /puppet\s+\((.+)\)/.match(`gem list -eld puppet`)[1]')
           bundle update --jobs 4 --retry 3
index 47385acf21e39ecf67f1cdf431848c86e4df9449..11ddefea670cc42dfb23b6602964263faeac80a9 100644 (file)
@@ -9,7 +9,7 @@ on:
 
 jobs:
   unit_tests_with_released_puppet_gem:
-    name: ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }} 
+    name: ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
     strategy:
       matrix:
         os: [ 'ubuntu-18.04', 'macos-10.15', 'windows-2016' ]
@@ -41,6 +41,7 @@ jobs:
 
       - name: Prepare testing environment with bundler
         run: |
+          git config --global core.longpaths true
           bundle config set system 'true'
           bundle update --jobs 4 --retry 3