Browse Source

build: run tests on windows normally

Samuel Attard 10 months ago
parent
commit
af4eaada02
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .github/workflows/pipeline-segment-electron-test.yml

+ 2 - 2
.github/workflows/pipeline-segment-electron-test.yml

@@ -109,8 +109,8 @@ jobs:
         tests_files=$(node script/split-tests ${{ matrix.shard }} ${{ inputs.target-platform == 'macos' && 1 || 3 }})
 
         # Run tests
-        if [ "`uname`" = "Darwin" ]; then
-          node script/yarn test --runners=main --trace-uncaught --enable-logging
+        if [ "${{ inputs.target-platform }}" != "linux" ]; then
+          node script/yarn test --runners=main --trace-uncaught --enable-logging --files $tests_files
         else
           chown :builduser .. && chmod g+w ..
           chown -R :builduser . && chmod -R g+w .