forked from dahlbyk/posh-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Johannes Schindelin <[email protected]>
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Test Posh-Git | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install dependencies | ||
shell: pwsh | ||
run: | | ||
"Git version: $(git --version)" | ||
"PSVersion: $($PSVersionTable.PSVersion)" | ||
"Host name: $($Host.Name)" | ||
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | ||
Install-Module Pester -MinimumVersion 5.0.0 -MaximumVersion 5.99.99 -Scope CurrentUser -Force | ||
- name: run tests | ||
shell: pwsh | ||
run: | | ||
Import-Module Pester -PassThru | ||
$ErrorActionPreference = 'Continue' | ||
$res = Invoke-Pester -Path test -Output Detailed -PassThru -ErrorAction SilentlyContinue | ||
if (!$res -or ($res.FailedCount -gt 0)) { | ||
$Error | Format-List * -Force | ||
exit 1 | ||
} |