File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI
2- on :
3- push :
4- branches : [ main ]
5- pull_request :
6- branches : [ main ]
2+ on : [push, pull_request]
73
84jobs :
95 build :
106 runs-on : windows-latest
7+
118 steps :
129 - uses : actions/checkout@v4
13- - name : Setup PowerShell
14- uses : PowerShell/PowerShell@v1
15- with :
16- pwsh-version : ' 7.x'
10+
11+ # Instala los módulos que necesitas
1712 - name : Install modules
18- run : Install-Module PSScriptAnalyzer,Pester -Force -Scope CurrentUser
13+ shell : pwsh # <-- usa el pwsh del runner
14+ run : |
15+ Install-Module PSScriptAnalyzer,Pester -Force -Scope CurrentUser
16+
1917 - name : Lint
18+ shell : pwsh
2019 run : Invoke-ScriptAnalyzer -Path scripts/dark.ps1 -Recurse -Severity Warning
21- - name : Test
20+
21+ - name : Tests
22+ shell : pwsh
2223 run : Invoke-Pester -Path tests -Passthru
Original file line number Diff line number Diff line change @@ -59,9 +59,6 @@ puedes crear una carpeta propia donde tengas tus bat o ejecutables a los que qui
59593 . pega los archivos que se encuentran en script tanto el dark.bat como el dark.ps1
60604 . ejecuta desde win + r o ejecutar "dark"
6161
62- ``` powershell
63- Install-Module ToggleDarkMode -Scope CurrentUser
64- ```
6562
6663</details >
6764
You can’t perform that action at this time.
0 commit comments