PR disable antivirus check (#2454)
Co-authored-by: Hien To <tominhhien97@gmail.com>
This commit is contained in:
parent
acbec78dbf
commit
e902d8edff
@ -67,6 +67,7 @@ jobs:
|
|||||||
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
CSC_IDENTITY_AUTO_DISCOVERY: "false"
|
||||||
|
|
||||||
test-on-windows:
|
test-on-windows:
|
||||||
|
if: github.event_name == 'push'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -101,6 +102,38 @@ jobs:
|
|||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
make test
|
make test
|
||||||
|
test-on-windows-pr:
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
runs-on: windows-desktop-default-windows-security
|
||||||
|
steps:
|
||||||
|
- name: Clean workspace
|
||||||
|
run: |
|
||||||
|
Remove-Item -Path "\\?\$(Get-Location)\*" -Force -Recurse
|
||||||
|
$path = "$Env:APPDATA\jan"
|
||||||
|
if (Test-Path $path) {
|
||||||
|
Remove-Item "\\?\$path" -Recurse -Force
|
||||||
|
} else {
|
||||||
|
Write-Output "Folder does not exist."
|
||||||
|
}
|
||||||
|
- name: Getting the repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Installing node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
# Clean cache, continue on error
|
||||||
|
- name: "Cleanup cache"
|
||||||
|
shell: powershell
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
make clean
|
||||||
|
|
||||||
|
- name: Linter and test
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
make test
|
||||||
|
|
||||||
test-on-ubuntu:
|
test-on-ubuntu:
|
||||||
runs-on: [self-hosted, Linux, ubuntu-desktop]
|
runs-on: [self-hosted, Linux, ubuntu-desktop]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user