-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1018 Bytes
/
pester-tests.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
name: Pester
on:
workflow_dispatch:
push:
pull_request:
branches: [ main ]
jobs:
pester-test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: checkout
uses: actions/checkout@v2
- name: pester
shell: pwsh
run: |
Import-Module Pester -Force
$config = [PesterConfiguration]@{
Run = @{
PassThru = $true
}
CodeCoverage = @{
Enabled = $true
OutputPath = "ci-cd/coverage.xml"
}
TestResult = @{
Enabled = $true
OutputPath = "ci-cd/testResults.xml"
}
}
Invoke-Pester -Configuration $config
- name: codecov
uses: codecov/[email protected]
with:
name: BuildName
token: ${{ secrets.CODECOV_TOKEN }}
file: ci-cd/coverage.xml