Skip to content

Commit

Permalink
dump PS and Make versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi committed Oct 4, 2023
1 parent 4a80a7c commit 4da6f42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ jobs:
-
name: Install dependencies
run: composer install --prefer-dist
-
name: Run PHPUnit
run: make -v
-
name: Run PHPUnit
run: $PSVersionTable
-
name: Run PHPUnit
run: vendor/bin/phpunit
2 changes: 2 additions & 0 deletions resources/Common/Platform/Windows/default.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ SPACE := $(empty) $(empty)

# TODO: rewrite output with https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_special_characters?view=powershell-7.3#escape-e
help: ## Prints this help
$$PSVersionTable
echo "$(subst $(SPACE),${COMMA},${MAKEFILE_LIST})"
@Select-String -Pattern '^ *(?<name>[-a-zA-Z0-9_/]+) *:.*## *(?<help>.+)' $(subst $(SPACE),${COMMA},${MAKEFILE_LIST}) | Sort-Object {$$_.Matches[0].Groups["name"]} | ForEach-Object{"{0, -20}" -f $$_.Matches[0].Groups["name"] | Write-Host -NoNewline -BackgroundColor Magenta -ForegroundColor White; " {0}" -f $$_.Matches[0].Groups["help"] | Write-Host -ForegroundColor White}

# TODO: review
Expand Down

0 comments on commit 4da6f42

Please sign in to comment.