Skip to content

Commit

Permalink
windows.yml - Add the idempotence test (phase1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-revay authored Mar 11, 2024
1 parent c15da1f commit 036b244
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ jobs:
!endsWith(github.event.head_commit.message, 'Remove a completed TODO')
strategy:
matrix:
os: ["windows-2022", "windows-latest"]
# TODO make this a single runner when windows-latest is the same as windows-2022
os: ["windows-latest"] # TODO_YEARLY - consider adding legacy Win versions

steps:
- name: "checkout repo"
Expand All @@ -42,5 +41,16 @@ jobs:
- name: Install optional packages
shell: pwsh
run: .\Windows_1X\optional_packages_install.ps1
- name: Create a directory for temporary files
shell: pwsh
run: mkdir C:/tmp
- name: save C:/Users for idempotency test
run: cp -Recursive C:/Users C:/tmp
- name: "Running `run_all.ps1` script for the 2nd time should not fail."
shell: pwsh
run: .\Windows_1X\run_all.ps1
- name: Running `optional_packages_install.ps1` script for the 2nd time should not fail.
shell: pwsh
run: .\Windows_1X\optional_packages_install.ps1

# TODO add idempotence test

0 comments on commit 036b244

Please sign in to comment.