Skip to content

feat: Implement Testing and Security Framework #5

feat: Implement Testing and Security Framework

feat: Implement Testing and Security Framework #5

Workflow file for this run

# .github/workflows/ci.yml
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
lint:
name: Lint Codebase
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit hooks
run: pre-commit run --all-files
test-powershell:
name: Test PowerShell
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Pester
shell: pwsh
run: |
Install-Module -Name Pester -Force -SkipPublisherCheck
- name: Run Pester Tests
shell: pwsh
run: |
$result = Invoke-Pester -Path 'tests/unit/PowerShell' -PassThru
if ($result.FailedCount -gt 0) {
exit 1
}