From: Haoqun Jiang Date: Thu, 20 Jan 2022 08:01:03 +0000 (+0800) Subject: ci: fix windows ci X-Git-Tag: v3.1.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc61dc0a3eeb0f479d013f8ab61e71dae82a4f77;p=thirdparty%2Fvuejs%2Fcreate-vue.git ci: fix windows ci --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45d6bf5a..f476d03c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/scripts/snapshot.mjs b/scripts/snapshot.mjs index 38f53f0f..0a859fe0 100644 --- a/scripts/snapshot.mjs +++ b/scripts/snapshot.mjs @@ -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('-')