mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
set unrestricted policy
This commit is contained in:
8
.github/workflows/golang-test-windows.yml
vendored
8
.github/workflows/golang-test-windows.yml
vendored
@@ -46,12 +46,16 @@ jobs:
|
|||||||
$WebClient.DownloadString("https://raw.githubusercontent.com/mkellerman/Invoke-CommandAs/master/Invoke-CommandAs/Public/Invoke-CommandAs.ps1") | Set-Content -Path ".\Invoke-CommandAs.ps1"
|
$WebClient.DownloadString("https://raw.githubusercontent.com/mkellerman/Invoke-CommandAs/master/Invoke-CommandAs/Public/Invoke-CommandAs.ps1") | Set-Content -Path ".\Invoke-CommandAs.ps1"
|
||||||
|
|
||||||
- name: Generate Iface Test bin
|
- name: Generate Iface Test bin
|
||||||
run: go test -c -o ${{ github.workspace }}/iface-testing.bin.exe ./iface/
|
run: go mod tidy
|
||||||
|
|
||||||
|
# run: go test -c -o ${{ github.workspace }}/iface-testing.bin.exe ./iface/
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
run: |
|
run: |
|
||||||
|
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process -Force
|
||||||
Import-Module PSScheduledJob -UseWindowsPowerShell
|
Import-Module PSScheduledJob -UseWindowsPowerShell
|
||||||
Import-Module ".\Invoke-ScheduledTask.ps1"
|
Import-Module ".\Invoke-ScheduledTask.ps1"
|
||||||
Import-Module ".\Invoke-CommandAs.ps1"
|
Import-Module ".\Invoke-CommandAs.ps1"
|
||||||
Invoke-CommandAs -ScriptBlock { ${{ github.workspace }}/iface-testing.bin.exe } -AsSystem
|
Invoke-CommandAs -ScriptBlock { whoami } -AsSystem
|
||||||
|
# Invoke-CommandAs -ScriptBlock { ${{ github.workspace }}/iface-testing.bin.exe } -AsSystem
|
||||||
Reference in New Issue
Block a user