forked from msfreaks/EvergreenAdmx
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.24 KB
/
Copy pathnightly.yml
File metadata and controls
45 lines (39 loc) · 1.24 KB
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
name: Nightly full matrix
on:
schedule:
# Sundays 06:00 UTC
- cron: '0 6 * * 0'
workflow_dispatch:
permissions:
contents: read
jobs:
full-matrix:
name: Full product matrix
runs-on: windows-latest
timeout-minutes: 180
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install Pester
shell: pwsh
run: |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-Module -Name Pester -MinimumVersion 5.5.0 -Scope CurrentUser -Force -AllowClobber -SkipPublisherCheck
- name: Pester Nightly tests
shell: pwsh
run: |
$config = New-PesterConfiguration
$config.Run.Path = '.\tests\EvergreenAdmx.Nightly.Tests.ps1'
$config.Run.Exit = $true
$config.Filter.Tag = @('Nightly')
$config.TestResult.Enabled = $true
$config.TestResult.OutputPath = '.\tests\TestResults.Nightly.xml'
$config.Output.Verbosity = 'Detailed'
Invoke-Pester -Configuration $config
- name: Upload nightly test results
if: always()
uses: actions/upload-artifact@v4
with:
name: pester-nightly-results
path: |
tests/TestResults.Nightly.xml