]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
ci: only disable threads for gh
authorEvan You <yyx990803@gmail.com>
Tue, 21 Feb 2023 14:46:43 +0000 (22:46 +0800)
committerEvan You <yyx990803@gmail.com>
Tue, 21 Feb 2023 14:46:43 +0000 (22:46 +0800)
vitest.config.ts

index 2eab2be1865495f0d20ba69420378264689da1ad..e5d5f59345f71ac06ca9705b8f81e23dc0df4c95 100644 (file)
@@ -22,6 +22,8 @@ export default defineConfig({
   },
   test: {
     globals: true,
+    // disable threads on GH actions to speed it up
+    threads: !process.env.GITHUB_ACTIONS,
     setupFiles: 'scripts/setupVitest.ts',
     environmentMatchGlobs: [
       ['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom']