From 4da6f42c04e5e19897b8d3fa4f8062ddb52fdc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Karlovi=C4=87?= Date: Wed, 4 Oct 2023 17:03:35 +0200 Subject: [PATCH] dump PS and Make versions --- .github/workflows/build.yaml | 6 ++++++ resources/Common/Platform/Windows/default.mk | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a024aab..dc35517 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/resources/Common/Platform/Windows/default.mk b/resources/Common/Platform/Windows/default.mk index 85e06df..374c840 100644 --- a/resources/Common/Platform/Windows/default.mk +++ b/resources/Common/Platform/Windows/default.mk @@ -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 '^ *(?[-a-zA-Z0-9_/]+) *:.*## *(?.+)' $(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