Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/powershell-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: PowerShell CI

on:
push:
pull_request:

jobs:
analyze:
name: Script analysis (PSScriptAnalyzer)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install PSScriptAnalyzer
shell: pwsh
run: |
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
Install-Module PSScriptAnalyzer -Scope CurrentUser -Force

- name: Run PSScriptAnalyzer (errors only)
shell: pwsh
run: |
Invoke-ScriptAnalyzer -Path . -Recurse -EnableExit -Severity Error

syntax-check:
name: Basic syntax check (-DryRun)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: PowerShell 7 check
shell: pwsh
run: |
pwsh -NoProfile -ExecutionPolicy Bypass -File ./FontSharpener.ps1 -DryRun -Verbose

- name: Windows PowerShell 5.1 check
shell: powershell
run: |
powershell -NoProfile -ExecutionPolicy Bypass -File ./FontSharpener.ps1 -DryRun -Verbose

publish-readme:
name: Publish README artifact
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Upload README
uses: actions/upload-artifact@v4
with:
name: README
path: README.md
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# OS junk
.DS_Store
Thumbs.db

# IDE/editor
.vscode/
.idea/
*.code-workspace

# Logs and temp
*.log
*.tmp
~$*

# PowerShell metadata (optional modules)
*.psd1
*.psm1

# Node/other common folders (not used here but harmless)
node_modules/
dist/
build/
Loading
Loading