Skip to content

Update CI

Update CI #5

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
windows-powershell-legacy:
name: Windows PowerShell 5.1
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install and cache PowerShell modules
uses: potatoqualitee/[email protected]
with:
shell: powershell
updatable: true
modules-to-cache: "InvokeBuild::, InvokeBuildHelper::, Pester:4.10.1"
- name: Build the PowerShell module assemblies
shell: powershell
run: |
Invoke-BuildIsolated -Task 'Build' -PesterVersion v4
- name: Run PowerShell module Schema tests
shell: powershell
run: |
Invoke-BuildIsolated -Task 'SchemaTest' -PesterVersion v4
- name: Run PowerShell module Unit tests
shell: powershell
run: |
Invoke-BuildIsolated -Task 'UnitTest' -PesterVersion v4
- name: Run PowerShell module Analyzer tests
shell: powershell
run: |
Invoke-BuildIsolated -Task 'AnalyzerTest' -PesterVersion v4