-
Notifications
You must be signed in to change notification settings - Fork 47
46 lines (44 loc) · 1.21 KB
/
ci-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
name: CI Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
merge_group:
types: [ checks_requested ]
jobs:
ci:
name: pester
strategy:
matrix:
os: [ windows-latest, macos-latest, ubuntu-latest ]
runs-on: ${{ matrix.os }}
env:
DOTNET_NOLOGO: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/*.csproj'
dotnet-version: 8.x
- run: ./tools/installPSResources.ps1
shell: pwsh
- run: Invoke-Build -Configuration Release -Task Build, Package, Test
shell: pwsh
- run: |
Install-Module Pester -Scope CurrentUser -Force -SkipPublisherCheck
Invoke-Build Test
if: matrix.os == 'windows-latest'
shell: powershell
- uses: actions/upload-artifact@v4
if: always()
with:
name: SecretManagement-package-${{ matrix.os }}
path: out/**/*.nupkg
- uses: actions/upload-artifact@v4
if: always()
with:
name: SecretManagement-tests-${{ matrix.os }}
path: testResults.xml