Skip to content

Commit 08631e2

Browse files
authored
ci: enable e2e test CI on Windows (#293)
1 parent bb1dfc5 commit 08631e2

File tree

96 files changed

+235
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+235
-61
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ jobs:
138138
include:
139139
- os: ubuntu-latest
140140
- os: namespace-profile-mac-default
141+
- os: windows-latest
141142
runs-on: ${{ matrix.os }}
142143
steps:
143144
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -166,15 +167,23 @@ jobs:
166167

167168
- name: Run CLI lint
168169
run: pnpm lint
170+
if: ${{ matrix.os != 'windows-latest' }}
169171

170172
- name: Install Playwright browsers
171173
run: pnpx playwright install chromium
172174

173175
- name: Run CLI E2E tests
176+
if: ${{ matrix.os != 'windows-latest' }}
174177
run: |
175178
RUST_BACKTRACE=1 pnpm test
176179
git diff --exit-code
177180
181+
- name: Run CLI E2E tests
182+
if: ${{ matrix.os == 'windows-latest' }}
183+
run: |
184+
RUST_BACKTRACE=1 pnpm -r snap-test
185+
git diff --exit-code
186+
178187
install-e2e-test:
179188
name: vite install E2E test
180189
# FIXME: Error: spawnSync esbuild ENOTSOCK

Cargo.lock

Lines changed: 43 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ tokio = "1.48.0"
6565
tracing = "0.1.41"
6666
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "serde"] }
6767
vite_error = { path = "crates/vite_error" }
68-
vite_glob = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" }
68+
vite_glob = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" }
6969
vite_install = { path = "crates/vite_install" }
70-
vite_path = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" }
71-
vite_str = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" }
72-
vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" }
73-
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" }
70+
vite_path = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" }
71+
vite_str = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" }
72+
vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" }
73+
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" }
7474
wax = "0.6.0"
7575

7676
napi = { version = "3.0.0", default-features = false, features = ["async", "error_anyhow"] }

packages/cli/snap-tests-todo/pnpm-install-with-options/steps.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"ignoredPlatforms": ["win32"],
23
"env": {
34
"VITE_DISABLE_AUTO_INSTALL": "1"
45
},

packages/cli/snap-tests-todo/test-panicked-fix/steps.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"ignoredPlatforms": ["win32"],
23
"env": {
34
"VITE_DISABLE_AUTO_INSTALL": "1"
45
},

packages/cli/snap-tests/associate-existing-cache/snap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ hello
2626
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2727

2828
Statistics: 1 tasks • 1 cache hits • 0 cache misses
29-
Performance: 100% cache hit rate, <variable>ms saved in total
29+
Performance: 100% cache hit rate
3030

3131
Task Details:
3232
────────────────────────────────────────────────

packages/cli/snap-tests/associate-existing-cache/steps.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"ignoredPlatforms": ["win32"],
23
"env": {
34
"VITE_DISABLE_AUTO_INSTALL": "1"
45
},

packages/cli/snap-tests/builtin-different-cwd/steps.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"ignoredPlatforms": ["win32"],
23
"env": {
34
"VITE_DISABLE_AUTO_INSTALL": "1"
45
},

packages/cli/snap-tests/cache-clean/snap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ hello
2626
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2727

2828
Statistics: 1 tasks • 1 cache hits • 0 cache misses
29-
Performance: 100% cache hit rate, <variable>ms saved in total
29+
Performance: 100% cache hit rate
3030

3131
Task Details:
3232
────────────────────────────────────────────────

packages/cli/snap-tests/cache-clean/steps.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"ignoredPlatforms": ["win32"],
23
"env": {
34
"VITE_DISABLE_AUTO_INSTALL": "1"
45
},

0 commit comments

Comments
 (0)