mirror of
https://github.com/cmderdev/cmder.git
synced 2026-02-25 06:26:08 +08:00
Fix yaml errors
This commit is contained in:
42
.github/workflows/tests.yml
vendored
42
.github/workflows/tests.yml
vendored
@@ -46,10 +46,10 @@ jobs:
|
||||
# Get Cmder version
|
||||
. scripts/utils.ps1
|
||||
$cmderVersion = Get-VersionStr
|
||||
|
||||
|
||||
$summary = @"
|
||||
## ✅ Run Tests - Workflow Summary
|
||||
|
||||
|
||||
### Test Environment
|
||||
| Property | Value |
|
||||
| --- | --- |
|
||||
@@ -60,10 +60,10 @@ jobs:
|
||||
| Cmder Version | **$cmderVersion** |
|
||||
| PowerShell Version | **$($PSVersionTable.PSVersion)** |
|
||||
| Event | ``${{ github.event_name }}`` |
|
||||
|
||||
|
||||
"@
|
||||
|
||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||
|
||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||
|
||||
- name: Initialize vendors
|
||||
shell: pwsh
|
||||
@@ -85,23 +85,23 @@ jobs:
|
||||
$vendorInfo += "- **$dir**: $($version.Trim())"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$summary = @"
|
||||
### ⚙️ Vendor Initialization
|
||||
|
||||
|
||||
✅ Vendor dependencies initialized successfully.
|
||||
|
||||
|
||||
**Vendor Versions:**
|
||||
"@
|
||||
|
||||
$(
|
||||
if ($vendorInfo.Count -eq 0) {
|
||||
"_No vendor version information available._"
|
||||
$summary += "_No vendor version information available._"
|
||||
} else {
|
||||
$vendorInfo -join "`n"
|
||||
$summary += $vendorInfo -join '`n'
|
||||
}
|
||||
)
|
||||
|
||||
"@
|
||||
|
||||
|
||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||
|
||||
- name: Summary - Test results table header
|
||||
@@ -110,12 +110,12 @@ jobs:
|
||||
run: |
|
||||
$summary = @"
|
||||
### 📋 Test Results
|
||||
|
||||
|
||||
| Test | Status | Duration |
|
||||
| --- | --- | --- |
|
||||
"@
|
||||
|
||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||
|
||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||
|
||||
- name: Testing Clink Shell
|
||||
id: test-clink
|
||||
@@ -153,15 +153,15 @@ jobs:
|
||||
shell: pwsh
|
||||
run: |
|
||||
$summary = @"
|
||||
|
||||
|
||||
### ✅ All Tests Completed
|
||||
|
||||
|
||||
All shell environments tested successfully!
|
||||
|
||||
|
||||
**Test Coverage:**
|
||||
- ✅ Clink shell environment (Windows cmd.exe with Clink)
|
||||
- ✅ PowerShell environment (with Cmder profile)
|
||||
- ✅ Bash environment (Git Bash integration)
|
||||
"@
|
||||
|
||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||
|
||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||
|
||||
Reference in New Issue
Block a user