mirror of
https://github.com/PowerShell/PSDesiredStateConfiguration
synced 2026-06-21 13:45:25 +00:00
46 lines
937 B
YAML
46 lines
937 B
YAML
name: CI Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ v2 ]
|
|
pull_request:
|
|
branches: [ v2 ]
|
|
|
|
jobs:
|
|
ci:
|
|
name: pester
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install PSResources
|
|
run: ./tools/installPSResources.ps1
|
|
shell: pwsh
|
|
|
|
- name: Build
|
|
run: ./build.ps1 -Build
|
|
shell: pwsh
|
|
|
|
- name: Test
|
|
run: ./build.ps1 -Test
|
|
shell: pwsh
|
|
|
|
- name: Package
|
|
run: ./build.ps1 -Publish
|
|
shell: pwsh
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: PSDesiredStateConfiguration-package
|
|
path: out/**/*.nupkg
|
|
|
|
- name: Upload test results
|
|
uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: PSDesiredStateConfiguration-tests
|
|
path: out/testResults.xml
|