From b6e31e3664d05d35f12c3b121171b662a262bc9a Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 11 Oct 2021 20:49:31 +0200 Subject: [PATCH] [ticket/16889] Disable anti spyware in windows CI builds PHPBB3-16889 --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2195ac2665..c4c91e0c2f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -542,6 +542,7 @@ jobs: psql -c 'create database phpbb_tests;' -U postgres Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender Set-MpPreference -DisableRealtimeMonitoring $true + New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name DisableAntiSpyware -Value 1 -PropertyType DWORD -Force - name: Run unit tests run: | phpBB/vendor/bin/phpunit --configuration .github/phpunit-psql-windows-github.xml --verbose --stop-on-error