Skip to content

Commit

Permalink
Do not call git config on Linux agents
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev committed May 6, 2024
1 parent 1d31c35 commit 2135d9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests-smoke.yml
Expand Up @@ -17,7 +17,10 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Support longpaths # Avoid failing tests on Windows with "cannot create directory at X. Filename too long"
- name: Set longpaths support for Windows
if: matrix.os == 'windows-latest'
# Avoid failing tests on Windows with "cannot create directory at X. Filename too long"
# This command will fail if run on a Linux build agent with "could not lock config file: Permission denied"
run: git config --system core.longpaths true
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/tests-thorough.yml
Expand Up @@ -15,7 +15,10 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Support longpaths # Avoid failing tests on Windows with "cannot create directory at X. Filename too long"
- name: Set longpaths support for Windows
if: matrix.os == 'windows-latest'
# Avoid failing tests on Windows with "cannot create directory at X. Filename too long"
# This command will fail if run on a Linux build agent with "could not lock config file: Permission denied"
run: git config --system core.longpaths true
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
Expand Down

0 comments on commit 2135d9d

Please sign in to comment.