Skip to content

Commit 11376c3

Browse files
committed
Build and test in one step (since the build isn't fully incremental)
Also upload all OS builds and bump build verbosity.
1 parent 927fcc9 commit 11376c3

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/ci-test.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,18 @@ jobs:
3434
- name: Install PSResources
3535
shell: pwsh
3636
run: tools/installPSResources.ps1
37-
- name: Build
37+
- name: Build and test
3838
shell: pwsh
39-
run: Invoke-Build Build
39+
run: Invoke-Build
4040
- name: Upload build artifacts
41+
if: always()
4142
uses: actions/upload-artifact@v3
42-
if: matrix.os == 'windows-latest'
4343
with:
44-
name: PowerShellEditorServices
44+
name: PowerShellEditorServices-module-${{ matrix.os }}
4545
path: module
46-
- name: Run tests
47-
shell: pwsh
48-
run: Invoke-Build Test
4946
- name: Upload test results
5047
uses: actions/upload-artifact@v3
5148
if: always()
5249
with:
53-
name: ${{ matrix.os }}-test-results
50+
name: PowerShellEditorServices-test-results-${{ matrix.os }}
5451
path: '**/*.trx'

PowerShellEditorServices.build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param(
1313

1414
[string]$DefaultModuleRepository = "PSGallery",
1515

16-
[string]$Verbosity = "quiet",
16+
[string]$Verbosity = "minimal",
1717

1818
# See: https://docs.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests
1919
[string]$TestFilter = '',

0 commit comments

Comments
 (0)