]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
ci: fix windows ci
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 20 Jan 2022 08:01:03 +0000 (16:01 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 20 Jan 2022 08:35:51 +0000 (16:35 +0800)
.github/workflows/ci.yml
scripts/snapshot.mjs

index 45d6bf5a1acbe1152c136c4a8bee1675bc677018..f476d03ce18b62b15e782ac10cd94fe9f354bd07 100644 (file)
@@ -14,16 +14,16 @@ jobs:
       fail-fast: false
       matrix:
         os:
-          - ubuntu-latest
-          - macos-latest
+          - ubuntu-latest
+          - macos-latest
           - windows-latest
         node-version:
           - 16
-        include:
-          - node-version: 14
-            os: ubuntu-latest
-          - node-version: 17
-            os: ubuntu-latest
+        include:
+          - node-version: 14
+            os: ubuntu-latest
+          - node-version: 17
+            os: ubuntu-latest
     name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
     steps:
       - uses: actions/checkout@v2
index 38f53f0f3b677543ff60c8b93d16241db206c64b..0a859fe0c0659bfda420533701afb20c74ad8522 100644 (file)
@@ -3,9 +3,6 @@ import 'zx/globals'
 
 $.verbose = false
 
-const bin = path.resolve(__dirname, '../outfile.cjs')
-const playgroundDir = path.resolve(__dirname, '../playground/')
-
 const featureFlags = ['typescript', 'jsx', 'router', 'pinia', 'vitest', 'cypress']
 
 // The following code & comments are generated by GitHub CoPilot.
@@ -52,6 +49,9 @@ withTestsFlags.push(['with-tests'])
 
 flagCombinations.push(...withTestsFlags)
 
+const playgroundDir = path.resolve(__dirname, '../playground/')
+const bin = path.posix.relative('../playground/', '../outfile.cjs')
+
 cd(playgroundDir)
 for (const flags of flagCombinations) {
   const projectName = flags.join('-')