Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiospizzi committed Sep 9, 2024
1 parent a955023 commit a6ea066
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,42 @@ name: CI

on:
push:
branches:
- main
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
windows-powershell-legacy:
name: Windows / PowerShell 5.1
name: Windows PowerShell 5.1
runs-on: windows-latest
steps:

- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install and cache PowerShell modules
uses: potatoqualitee/psmodulecache@v5.2
uses: potatoqualitee/psmodulecache@v6.2
with:
shell: powershell
updatable: true
modules-to-cache: "InvokeBuild::, InvokeBuildHelper::"
modules-to-cache: "InvokeBuild::, InvokeBuildHelper::, Pester:4.10.1"

- name: Build the PowerShell module assemblies
shell: powershell
run: |
Invoke-Build -Task 'Build'
Invoke-BuildIsolated -Task 'Build' -PesterVersion v4
- name: Run PowerShell module Schema tests
shell: powershell
run: |
Invoke-Build -Task 'SchemaTest'
Invoke-BuildIsolated -Task 'SchemaTest' -PesterVersion v4
- name: Run PowerShell module Unit tests
shell: powershell
run: |
Invoke-Build -Task 'UnitTest'
Invoke-BuildIsolated -Task 'UnitTest' -PesterVersion v4
- name: Run PowerShell module Analyzer tests
shell: powershell
run: |
Invoke-Build -Task 'AnalyzerTest'
Invoke-BuildIsolated -Task 'AnalyzerTest' -PesterVersion v4

0 comments on commit a6ea066

Please sign in to comment.