Skip to content

Commit

Permalink
Revert "Update test"
Browse files Browse the repository at this point in the history
This reverts commit d83892b.
  • Loading branch information
hugoalh committed Nov 23, 2023
1 parent 1bf51a4 commit 6a6b9da
Showing 1 changed file with 1 addition and 49 deletions.
50 changes: 1 addition & 49 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
jobs:
main:
name: "${{matrix.os}} (Async: ${{matrix.operate_async}}; Sudo: ${{matrix.operate_sudo}}; WindowsDefender: ${{matrix.operate_windowsdefender}})"
name: "${{matrix.os}} (Async: ${{matrix.operate_async}}; Sudo: ${{matrix.operate_sudo}})"
runs-on: "${{matrix.os}}"
strategy:
matrix:
Expand All @@ -14,63 +14,15 @@ jobs:
operate_sudo:
- "False"
- "True"
operate_windowsdefender:
- "False"
- "True"
os:
- "macos-latest"
- "ubuntu-latest"
- "windows-latest"
exclude:
- operate_sudo: "True"
os: "windows-latest"
- operate_windowsdefender: "True"
os: "macos-latest"
- operate_windowsdefender: "True"
os: "ubuntu-latest"
fail-fast: false
steps:
- name: "Disable Windows Defender"
if: "${{runner.os == 'windows' && matrix.operate_windowsdefender == 'true'}}"
run: |
Try { Set-MpPreference -AllowNetworkProtectionOnWinServer $False } Catch { }
Try { Set-MpPreference -AllowSwitchToAsyncInspection $True } Catch { }
Try { Set-MpPreference -DisableArchiveScanning $True } Catch { }
Try { Set-MpPreference -DisableBehaviorMonitoring $True } Catch { }
Try { Set-MpPreference -DisableBlockAtFirstSeen $True } Catch { }
Try { Set-MpPreference -DisableCacheMaintenance 1 } Catch { }
Try { Set-MpPreference -DisableCatchupFullScan $True } Catch { }
Try { Set-MpPreference -DisableCatchupQuickScan $True } Catch { }
Try { Set-MpPreference -DisableCpuThrottleOnIdleScans $True } Catch { }
Try { Set-MpPreference -DisableDatagramProcessing $True } Catch { }
Try { Set-MpPreference -DisableDnsOverTcpParsing $True } Catch { }
Try { Set-MpPreference -DisableDnsParsing $True } Catch { }
Try { Set-MpPreference -DisableEmailScanning $True } Catch { }
Try { Set-MpPreference -DisableFtpParsing $True } Catch { }
Try { Set-MpPreference -DisableHttpParsing $True } Catch { }
Try { Set-MpPreference -DisableIOAVProtection $True } Catch { }
Try { Set-MpPreference -DisableNetworkProtectionPerfTelemetry $True } Catch { }
Try { Set-MpPreference -DisableRdpParsing $True } Catch { }
Try { Set-MpPreference -DisableRealtimeMonitoring $True } Catch { }
Try { Set-MpPreference -DisableRemovableDriveScanning $True } Catch { }
Try { Set-MpPreference -DisableRestorePoint $True } Catch { }
Try { Set-MpPreference -DisableScanningMappedNetworkDrivesForFullScan $True } Catch { }
Try { Set-MpPreference -DisableScanningNetworkFiles $True } Catch { }
Try { Set-MpPreference -DisableScriptScanning $True } Catch { }
Try { Set-MpPreference -DisableSmtpParsing $True } Catch { }
Try { Set-MpPreference -DisableSshParsing $True } Catch { }
Try { Set-MpPreference -DisableTlsParsing $True } Catch { }
Try { Set-MpPreference -EnableControlledFolderAccess 'Disabled' } Catch { }
Try { Set-MpPreference -EnableFileHashComputation $True } Catch { }
Try { Set-MpPreference -EnableFullScanOnBatteryPower $False } Catch { }
Try { Set-MpPreference -EnableLowCpuPriority $True } Catch { }
Try { Set-MpPreference -EnableNetworkProtection 'Disabled' } Catch { }
Try { Set-MpPreference -MAPSReporting 'Disabled' } Catch { }
Try { Set-MpPreference -PUAProtection 'Disabled' } Catch { }
Try { Set-MpPreference -ScanOnlyIfIdleEnabled $True } Catch { }
Try { Set-MpPreference -SubmitSamplesConsent 'NeverSend' } Catch { }
shell: "powershell"
continue-on-error: true
- name: "Optimize Disk Space"
uses: "hugoalh/disk-space-optimizer-ghaction@main"
with:
Expand Down

0 comments on commit 6a6b9da

Please sign in to comment.