-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (44 loc) · 1.19 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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="