feat: add professional deployment ensemble, PowerShell orchestration, and CI standards
This commit is contained in:
@@ -0,0 +1 @@
|
||||
* @igor04091968
|
||||
@@ -0,0 +1,13 @@
|
||||
## Summary
|
||||
|
||||
- what changed
|
||||
- why it changed
|
||||
- risk and rollback notes
|
||||
|
||||
## Checklist
|
||||
|
||||
- [ ] No real secrets or credentials committed
|
||||
- [ ] Server-side scripts validated (`bash -n`)
|
||||
- [ ] PowerShell scripts validated (`Invoke-ScriptAnalyzer`)
|
||||
- [ ] Docs updated (full paths and runbook steps)
|
||||
- [ ] Rollback steps documented
|
||||
@@ -0,0 +1,47 @@
|
||||
name: shell-and-powershell-ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
shell-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install shellcheck
|
||||
run: sudo apt-get update && sudo apt-get install -y shellcheck
|
||||
|
||||
- name: Run shellcheck
|
||||
run: |
|
||||
find . -type f -name "*.sh" -print0 | xargs -0 -r shellcheck
|
||||
|
||||
powershell-analyzer:
|
||||
runs-on: ubuntu-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: Analyze PowerShell scripts
|
||||
shell: pwsh
|
||||
run: |
|
||||
$targets = @(
|
||||
"windows/*.ps1",
|
||||
"windows/*.psm1",
|
||||
"windows/*.psd1"
|
||||
)
|
||||
$issues = Invoke-ScriptAnalyzer -Path $targets -Recurse -Severity Error,Warning
|
||||
if ($issues) {
|
||||
$issues | Format-Table -AutoSize
|
||||
throw "PSScriptAnalyzer detected issues."
|
||||
}
|
||||
Reference in New Issue
Block a user