Skip to content

Commit

Permalink
Merge pull request #19 from theohbrothers/test/ci-move-setting-of-git…
Browse files Browse the repository at this point in the history
…-safe-directory-to-individual-step

Test (ci): Move setting of git safe directory to individual step
  • Loading branch information
joeltimothyoh authored Apr 27, 2024
2 parents 6479e4d + c14639e commit 8e1b5e6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci-master-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ jobs:
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Ignore git permissions
run: |
git config --global --add safe.directory "$( pwd )"
- name: Test
run: |
git config --global --add safe.directory '*'
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
test-powershell-7-3:
Expand All @@ -94,9 +96,11 @@ jobs:
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Ignore git permissions
run: |
git config --global --add safe.directory "$( pwd )"
- name: Test
run: |
git config --global --add safe.directory '*'
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'
test-powershell-7-4:
Expand All @@ -110,7 +114,9 @@ jobs:
- name: Powershell version
run: |
pwsh -NoLogo -NonInteractive -NoProfile -Command '$PSVersionTable'
- name: Ignore git permissions
run: |
git config --global --add safe.directory "$( pwd )"
- name: Test
run: |
git config --global --add safe.directory '*'
pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = "Continue"; ./test/test.ps1'

0 comments on commit 8e1b5e6

Please sign in to comment.