From cc61dc0a3eeb0f479d013f8ab61e71dae82a4f77 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Thu, 20 Jan 2022 16:01:03 +0800 Subject: [PATCH] ci: fix windows ci --- .github/workflows/ci.yml | 14 +++++++------- scripts/snapshot.mjs | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) 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('-') -- 2.39.5