Validate action #514
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate action | |
on: | |
pull_request: | |
schedule: | |
- cron: 0 0 * * * | |
jobs: | |
default-parameters: | |
strategy: | |
matrix: | |
os: [ windows-2019, windows-2022 ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: configure-pagefile-action | |
uses: ./ | |
with: | |
minimum-size: 8GB | |
- name: validation | |
shell: pwsh | |
run: | | |
(Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize | |
Invoke-Expression "wmic pagefile list /format:list" | Select-String "AllocatedBaseSize=", "Name=" | |
custom-parameters: | |
strategy: | |
matrix: | |
os: [ windows-2019, windows-2022 ] | |
disk-root: [ "C:", "D:" ] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: configure-pagefile-action | |
uses: ./ | |
with: | |
minimum-size: 4GB | |
maximum-size: 8GB | |
disk-root: ${{ matrix.disk-root }} | |
- name: validation | |
shell: pwsh | |
run: | | |
(Get-CimInstance Win32_PageFileUsage).AllocatedBaseSize | |
Invoke-Expression "wmic pagefile list /format:list" | Select-String "AllocatedBaseSize=", "Name=" |