ci: turn off windows on arm test result comments (#35142)
This commit is contained in:
parent
7588bb7425
commit
0d36c0cdc6
1 changed files with 39 additions and 27 deletions
66
.github/workflows/electron_woa_testing.yml
vendored
66
.github/workflows/electron_woa_testing.yml
vendored
|
@ -11,39 +11,43 @@ on:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
electron-woa-testing:
|
electron-woa-init:
|
||||||
|
if: ${{ github.event_name == 'push' && github.repository == 'electron/electron' }}
|
||||||
runs-on: [self-hosted, woa]
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Dummy step for push event
|
||||||
|
run: |
|
||||||
|
echo "This job is a needed initialization step for Electron WOA testing. Another test result will appear once the electron-woa-testing build is done."
|
||||||
|
|
||||||
|
electron-woa-testing:
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' && github.repository == 'electron/electron' }}
|
||||||
|
runs-on: [self-hosted, woa]
|
||||||
permissions:
|
permissions:
|
||||||
checks: write
|
checks: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: LouisBrunner/checks-action@v1.1.1
|
- uses: LouisBrunner/checks-action@v1.1.1
|
||||||
if: ${{ github.event_name == 'push' && github.repository == 'electron/electron' }}
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
name: electron-woa-testing
|
name: electron-woa-testing
|
||||||
status: in_progress
|
status: in_progress
|
||||||
|
details_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
output: |
|
||||||
|
{"summary":"Test In Progress","text_description":"See job details here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
|
||||||
- name: Clean Workspace
|
- name: Clean Workspace
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
Remove-Item * -Recurse -Force
|
Remove-Item * -Recurse -Force
|
||||||
shell: powershell
|
shell: powershell
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
with:
|
with:
|
||||||
path: src\electron
|
path: src\electron
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Yarn install
|
- name: Yarn install
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
cd src\electron
|
cd src\electron
|
||||||
node script/yarn.js install --frozen-lockfile
|
node script/yarn.js install --frozen-lockfile
|
||||||
- name: Download and extract dist.zip for test
|
- name: Download and extract dist.zip for test
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
$localArtifactPath = "$pwd\dist.zip"
|
$localArtifactPath = "$pwd\dist.zip"
|
||||||
$serverArtifactPath = "https://ci.appveyor.com/api/buildjobs/${{ inputs.appveyor_job_id }}/artifacts/dist.zip"
|
$serverArtifactPath = "https://ci.appveyor.com/api/buildjobs/${{ inputs.appveyor_job_id }}/artifacts/dist.zip"
|
||||||
|
@ -51,14 +55,12 @@ jobs:
|
||||||
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -osrc\out\Default -y $localArtifactPath
|
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -osrc\out\Default -y $localArtifactPath
|
||||||
shell: powershell
|
shell: powershell
|
||||||
- name: Download and extract native test executables for test
|
- name: Download and extract native test executables for test
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
$localArtifactPath = "src\out\Default\shell_browser_ui_unittests.exe"
|
$localArtifactPath = "src\out\Default\shell_browser_ui_unittests.exe"
|
||||||
$serverArtifactPath = "https://ci.appveyor.com/api/buildjobs/${{ inputs.appveyor_job_id }}/artifacts/shell_browser_ui_unittests.exe"
|
$serverArtifactPath = "https://ci.appveyor.com/api/buildjobs/${{ inputs.appveyor_job_id }}/artifacts/shell_browser_ui_unittests.exe"
|
||||||
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer ${{ secrets.APPVEYOR_TOKEN }}" }
|
Invoke-RestMethod -Method Get -Uri $serverArtifactPath -OutFile $localArtifactPath -Headers @{ "Authorization" = "Bearer ${{ secrets.APPVEYOR_TOKEN }}" }
|
||||||
shell: powershell
|
shell: powershell
|
||||||
- name: Download and extract ffmpeg.zip for test
|
- name: Download and extract ffmpeg.zip for test
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
$localArtifactPath = "$pwd\ffmpeg.zip"
|
$localArtifactPath = "$pwd\ffmpeg.zip"
|
||||||
$serverArtifactPath = "https://ci.appveyor.com/api/buildjobs/${{ inputs.appveyor_job_id }}/artifacts/ffmpeg.zip"
|
$serverArtifactPath = "https://ci.appveyor.com/api/buildjobs/${{ inputs.appveyor_job_id }}/artifacts/ffmpeg.zip"
|
||||||
|
@ -66,7 +68,6 @@ jobs:
|
||||||
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -osrc\out\ffmpeg $localArtifactPath
|
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -osrc\out\ffmpeg $localArtifactPath
|
||||||
shell: powershell
|
shell: powershell
|
||||||
- name: Download node headers for test
|
- name: Download node headers for test
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
$localArtifactPath = "src\node_headers.zip"
|
$localArtifactPath = "src\node_headers.zip"
|
||||||
$serverArtifactPath = "https://ci.appveyor.com/api/buildjobs/${{ inputs.appveyor_job_id }}/artifacts/node_headers.zip"
|
$serverArtifactPath = "https://ci.appveyor.com/api/buildjobs/${{ inputs.appveyor_job_id }}/artifacts/node_headers.zip"
|
||||||
|
@ -75,7 +76,6 @@ jobs:
|
||||||
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -y node_headers.zip
|
& "${env:ProgramFiles(x86)}\7-Zip\7z.exe" x -y node_headers.zip
|
||||||
shell: powershell
|
shell: powershell
|
||||||
- name: Download electron.lib for test
|
- name: Download electron.lib for test
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
$localArtifactPath = "src\out\Default\electron.lib"
|
$localArtifactPath = "src\out\Default\electron.lib"
|
||||||
$serverArtifactPath = "https://ci.appveyor.com/api/buildjobs/${{ inputs.appveyor_job_id }}/artifacts/electron.lib"
|
$serverArtifactPath = "https://ci.appveyor.com/api/buildjobs/${{ inputs.appveyor_job_id }}/artifacts/electron.lib"
|
||||||
|
@ -98,13 +98,11 @@ jobs:
|
||||||
# }
|
# }
|
||||||
# shell: powershell
|
# shell: powershell
|
||||||
- name: Setup node headers
|
- name: Setup node headers
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
New-Item src\out\Default\gen\node_headers\Release -Type directory
|
New-Item src\out\Default\gen\node_headers\Release -Type directory
|
||||||
Copy-Item -path src\out\Default\electron.lib -destination src\out\Default\gen\node_headers\Release\node.lib
|
Copy-Item -path src\out\Default\electron.lib -destination src\out\Default\gen\node_headers\Release\node.lib
|
||||||
shell: powershell
|
shell: powershell
|
||||||
- name: Run Electron Main process tests
|
- name: Run Electron Main process tests
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
cd src
|
cd src
|
||||||
set npm_config_nodedir=%cd%\out\Default\gen\node_headers
|
set npm_config_nodedir=%cd%\out\Default\gen\node_headers
|
||||||
|
@ -120,7 +118,7 @@ jobs:
|
||||||
MOCHA_REPORTER: mocha-multi-reporters
|
MOCHA_REPORTER: mocha-multi-reporters
|
||||||
ELECTRON_SKIP_NATIVE_MODULE_TESTS: true
|
ELECTRON_SKIP_NATIVE_MODULE_TESTS: true
|
||||||
- name: Run Electron Remote based tests
|
- name: Run Electron Remote based tests
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' && (success() || failure()) }}
|
if: ${{ success() || failure() }}
|
||||||
run: |
|
run: |
|
||||||
cd src
|
cd src
|
||||||
set npm_config_nodedir=%cd%\out\Default\gen\node_headers
|
set npm_config_nodedir=%cd%\out\Default\gen\node_headers
|
||||||
|
@ -134,33 +132,47 @@ jobs:
|
||||||
MOCHA_MULTI_REPORTERS: 'mocha-junit-reporter, tap'
|
MOCHA_MULTI_REPORTERS: 'mocha-junit-reporter, tap'
|
||||||
MOCHA_REPORTER: mocha-multi-reporters
|
MOCHA_REPORTER: mocha-multi-reporters
|
||||||
ELECTRON_SKIP_NATIVE_MODULE_TESTS: true
|
ELECTRON_SKIP_NATIVE_MODULE_TESTS: true
|
||||||
- name: Publish Test Results
|
|
||||||
uses: EnricoMi/publish-unit-test-result-action/composite@v1
|
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' && (success() || failure()) }}
|
|
||||||
with:
|
|
||||||
files: "src/junit/**/*.xml"
|
|
||||||
check_name: "electron-woa-testing"
|
|
||||||
- name: Verify ffmpeg
|
- name: Verify ffmpeg
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
cd src
|
cd src
|
||||||
echo "Verifying non proprietary ffmpeg"
|
echo "Verifying non proprietary ffmpeg"
|
||||||
python electron\script\verify-ffmpeg.py --build-dir out\Default --source-root %cd% --ffmpeg-path out\ffmpeg
|
python electron\script\verify-ffmpeg.py --build-dir out\Default --source-root %cd% --ffmpeg-path out\ffmpeg
|
||||||
shell: cmd
|
shell: cmd
|
||||||
- name: Kill processes left running from last test run
|
- name: Kill processes left running from last test run
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' && (success() || failure()) || cancelled() }}
|
if: ${{ always() }}
|
||||||
run: |
|
run: |
|
||||||
Get-Process | Where Name -Like "electron*" | Stop-Process
|
Get-Process | Where Name -Like "electron*" | Stop-Process
|
||||||
Get-Process | Where Name -Like "msedge*" | Stop-Process
|
Get-Process | Where Name -Like "msedge*" | Stop-Process
|
||||||
shell: powershell
|
shell: powershell
|
||||||
- name: Delete user app data directories
|
- name: Delete user app data directories
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' && (success() || failure()) || cancelled() }}
|
if: ${{ always() }}
|
||||||
run: |
|
run: |
|
||||||
Remove-Item -path $env:APPDATA/Electron* -Recurse -Force -ErrorAction Ignore
|
Remove-Item -path $env:APPDATA/Electron* -Recurse -Force -ErrorAction Ignore
|
||||||
shell: powershell
|
shell: powershell
|
||||||
- uses: LouisBrunner/checks-action@v1.1.1
|
- uses: LouisBrunner/checks-action@v1.1.1
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' && (success() || failure()) || cancelled() }}
|
if: ${{ success() }}
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
name: electron-woa-testing
|
name: electron-woa-testing
|
||||||
conclusion: "${{ job.status }}"
|
conclusion: "${{ job.status }}"
|
||||||
|
details_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
output: |
|
||||||
|
{"summary":"${{ job.status }}","text_description":"See job details here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
|
||||||
|
- uses: LouisBrunner/checks-action@v1.1.1
|
||||||
|
if: ${{ success() }}
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
name: electron-woa-testing
|
||||||
|
conclusion: "${{ job.status }}"
|
||||||
|
details_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
output: |
|
||||||
|
{"summary":"Job Succeeded","text_description":"See job details here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
|
||||||
|
- uses: LouisBrunner/checks-action@v1.1.1
|
||||||
|
if: ${{ ! success() }}
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
name: electron-woa-testing
|
||||||
|
conclusion: "${{ job.status }}"
|
||||||
|
details_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
output: |
|
||||||
|
{"summary":"Job Failed","text_description":"See job details here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}
|
Loading…
Add table
Add a link
Reference in a new issue