-
-
Notifications
You must be signed in to change notification settings - Fork 91
61 lines (51 loc) · 1.3 KB
/
ci-powershell.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
51
52
53
54
55
56
57
58
59
60
61
name: Pode CI - Powershell Desktop
on:
push:
branches:
- '*'
- '!gh-pages'
paths:
- 'src/**'
- 'tests/**'
- 'pode.build.ps1'
- '.github/workflows/ci-powershell.yml'
pull_request:
branches:
- '*'
paths:
- 'src/**'
- 'tests/**'
- 'pode.build.ps1'
- '.github/workflows/ci-powershell.yml'
env:
INVOKE_BUILD_VERSION: '5.12.0'
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Check PowerShell version
shell: powershell
run: |
$PSVersionTable.PSVersion
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x
- name: Install Invoke-Build
shell: powershell
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module -Name InvokeBuild -RequiredVersion $env:INVOKE_BUILD_VERSION -Force
- name: Run Pester Tests
shell: powershell
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Build Test
- name: Build Packages
shell: powershell
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Build Pack