mirror of
https://github.com/electron/electron.git
synced 2026-01-06 22:24:03 -05:00
shard tests to try to narrow down WOA lockup
This commit is contained in:
@@ -50,7 +50,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
build-type: ${{ inputs.target-platform == 'macos' && fromJSON('["darwin","mas"]') || (inputs.target-platform == 'windows' && fromJSON('["windows"]') || fromJSON('["linux"]')) }}
|
||||
shard: ${{ inputs.target-platform == 'linux' && fromJSON('[1, 2, 3]') || fromJSON('[1, 2]') }}
|
||||
shard: ${{ inputs.target-platform != 'macos' && fromJSON('[1, 2, 3, 4]') || fromJSON('[1, 2]') }}
|
||||
env:
|
||||
BUILD_TYPE: ${{ matrix.build-type }}
|
||||
TARGET_ARCH: ${{ inputs.target-arch }}
|
||||
@@ -190,7 +190,7 @@ jobs:
|
||||
cd src/electron
|
||||
export ELECTRON_TEST_RESULTS_DIR=`pwd`/junit
|
||||
# Get which tests are on this shard
|
||||
tests_files=$(node script/split-tests ${{ matrix.shard }} ${{ inputs.target-platform == 'macos' && 2 || 3 }})
|
||||
tests_files=$(node script/split-tests ${{ matrix.shard }} ${{ inputs.target-platform == 'macos' && 2 || 4 }})
|
||||
|
||||
# Run tests
|
||||
if [ "`uname`" = "Darwin" ]; then
|
||||
@@ -224,12 +224,13 @@ jobs:
|
||||
cd src\electron
|
||||
echo ELECTRON_TEST_RESULTS_DIR=$PWD\junit >> $env:GITHUB_ENV
|
||||
# Get which tests are on this shard
|
||||
$tests_files=node script\split-tests ${{ matrix.shard }} 2
|
||||
$tests_files=node script\split-tests ${{ matrix.shard }} 4
|
||||
echo tests_files=$tests_files >> $env:GITHUB_ENV
|
||||
if ('${{ inputs.target-arch }}' -eq 'x86') {
|
||||
echo npm_config_arch=ia32 >> $env:GITHUB_ENV
|
||||
}
|
||||
- name: Run Electron Tests (Windows)
|
||||
timeout-minutes: 20
|
||||
if: ${{ inputs.target-platform == 'windows' }}
|
||||
shell: cmd
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user