Skip to content

Commit 83c056c

Browse files
committed
Replaced 'folded block scalars' with 'folded block scalars' in the test workflow.
1 parent cdb1b56 commit 83c056c

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
entrypoint: powershell.exe
3939
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
4040
env_names: TEST_MAPPING_PATH
41-
run: >-
41+
run: |
4242
c:\map\test\run_test.ps1 -testPath "c:\map\test\run_default.Tests.ps1";
4343
4444
- name: Test_ExtraArgs
@@ -48,9 +48,8 @@ jobs:
4848
mapping_path: 'c:\map'
4949
workspace_path: ${{ github.workspace }}
5050
extra_args: --entrypoint cmd.exe
51-
run: >-
52-
echo "Hello world";
53-
exit %ERRORLEVEL%;
51+
run: |
52+
echo Hello world & exit %ERRORLEVEL%
5453
5554
- name: Test_Environment
5655
uses: ./
@@ -60,7 +59,7 @@ jobs:
6059
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
6160
mapping_path: 'c:\map'
6261
env_names: TEST1, TEST2, TEST3
63-
run: >-
62+
run: |
6463
c:\map\test\run_test.ps1 -testPath "c:\map\test\environment.Tests.ps1";
6564
6665
- name: Test_Default_Environment
@@ -70,7 +69,7 @@ jobs:
7069
entrypoint: powershell.exe
7170
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
7271
mapping_path: 'c:\map'
73-
run: >-
72+
run: |
7473
c:\map\test\run_test.ps1 -testPath "c:\map\test\default_environment.Tests.ps1";
7574
7675
- name: Test_WorkPath
@@ -82,7 +81,7 @@ jobs:
8281
entrypoint: powershell.exe
8382
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
8483
memory: 3GB
85-
run: >-
84+
run: |
8685
c:\map\test\run_test.ps1 -testPath "c:\map\test\work_path.Tests.ps1";
8786
8887
- name: Test_MappingPath
@@ -94,7 +93,7 @@ jobs:
9493
entrypoint: powershell.exe
9594
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
9695
memory: 3GB
97-
run: >-
96+
run: |
9897
c:\mapping\test\run_test.ps1 -testPath "c:\mapping\test\mapping_path.Tests.ps1";
9998
10099
- name: Test_WorkSpacePath
@@ -107,7 +106,7 @@ jobs:
107106
entrypoint_args: '-NoLogo -NonInteractive -NoProfile'
108107
memory: 3GB
109108
env_names: TEST_MAPPING_PATH
110-
run: >-
109+
run: |
111110
c:\map\run_test.ps1 -testPath "c:\map\workspace_path.Tests.ps1";
112111
113112
validate:
@@ -119,23 +118,23 @@ jobs:
119118
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
120119
- name: Install
121120
shell: pwsh -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
122-
run: >-
121+
run: |
123122
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted;
124123
Install-Module -Name Pester -Force -SkipPublisherCheck;
125124
Update-Module -Name Pester -Force;
126125
Install-Module -Name PSScriptAnalyzer -Force;
127126
Import-Module PSScriptAnalyzer -ErrorAction Stop
128127
- name: Linter src
129128
shell: pwsh -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
130-
run: >-
129+
run: |
131130
Invoke-ScriptAnalyzer -Path src -EnableExit;
132131
- name: Linter test
133132
shell: pwsh -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
134-
run: >-
133+
run: |
135134
Invoke-ScriptAnalyzer -Path test -EnableExit;
136135
- name: Test-Action-Scripts
137136
shell: pwsh -NoLogo -NonInteractive -NoProfile -Command ". '{0}'"
138-
run: >-
137+
run: |
139138
Set-Location src;
140139
$config=New-PesterConfiguration;
141140
$config.Run.Exit=$true;

0 commit comments

Comments
 (0)