Skip to content

Commit

Permalink
Remove Windows Terminal testing on windows-2019
Browse files Browse the repository at this point in the history
  • Loading branch information
emtuls committed Jan 31, 2024
1 parent 9d1218a commit 78dc4fd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,24 @@ jobs:
- name: Build and test all modified packages
id: test
# It runs only if there are modified files
# We specifically test for "microsoft-windows-terminal.vm" in 'windows-2019' because it requires at least Windows 10 version 1903/OS build 18362
# The "test_install.ps1" script will fail if attempting to pass a NULL package list
if: steps.files.outputs.added_modified_renamed != ''
run: |
$os = "${{ matrix.os }}"
$packages = "${{ steps.files.outputs.added_modified_renamed }}".Split(" ") | Foreach-Object { (Get-Item $_).Directory.Name }
if ($os -eq 'windows-2019') {
$packageToRemove = "microsoft-windows-terminal.vm"
$packages = $packages -replace $packageToRemove, ""
}
scripts/test/test_install.ps1 "common.vm $packages"
- name: Upload logs to artifacts
uses: ./.github/actions/upload-logs
if: always()
- name: Push all built packages to MyGet
# Only push packages on master if they were built (not if testing was skipped) and
# only with one version of Windows (otherwise it would be pushed 3 times)
if: steps.test.outcome == 'success' && github.event_name == 'push' && matrix.os == 'windows-2019'
if: steps.test.outcome == 'success' && github.event_name == 'push' && matrix.os == 'windows-2022'
run: |
$built_pkgs = Get-ChildItem built_pkgs
Set-Location built_pkgs
Expand Down

0 comments on commit 78dc4fd

Please sign in to comment.