Files
Win11Debloat/.github/workflows/tests.yml
T

59 lines
1.5 KiB
YAML

name: Tests
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
jobs:
pester:
name: Pester (Windows PowerShell 5.1)
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run tests
shell: powershell
run: ./Tools/Run-Tests.ps1 -Bootstrap
psscriptanalyzer:
name: PSScriptAnalyzer (Error severity)
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run PSScriptAnalyzer
shell: powershell
run: |
$ErrorActionPreference = 'Stop'
Install-Module -Name PSScriptAnalyzer -Scope CurrentUser -Force -Confirm:$false
Import-Module PSScriptAnalyzer
Invoke-ScriptAnalyzer -Path . -Recurse -Severity Error -EnableExit
language-keys:
name: Language key report (informational)
runs-on: windows-latest
timeout-minutes: 5
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Report missing and extra language keys
shell: powershell
run: ./Tools/Report-LanguageKeys.ps1