-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) 路 923 Bytes
/
Copy pathtest.yml
File metadata and controls
41 lines (35 loc) 路 923 Bytes
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
name: Test
on:
push:
branches: ["main"]
paths:
- "Module/**"
- "Predictor/**"
- "Build.ps1"
pull_request:
branches: ["main"]
jobs:
test:
name: Pester test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout Repository Code
uses: actions/checkout@v6
with:
fetch-depth: 1 # Fetch only the latest commit to speed up the checkout process
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
- name: Build Module
shell: pwsh
run: ./Build.ps1 -Configuration Release
- name: Run Tests
shell: pwsh
run: |
Import-Module ./Module/PSFavorite.psd1 -Force
Invoke-Pester -Path ./Module/Tests -Output Detailed -PassThru