Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ jobs:
include:
- os: ubuntu-latest
- os: namespace-profile-mac-default
- os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down Expand Up @@ -166,15 +167,23 @@ jobs:

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

- name: Install Playwright browsers
run: pnpx playwright install chromium

- name: Run CLI E2E tests
if: ${{ matrix.os != 'windows-latest' }}
run: |
RUST_BACKTRACE=1 pnpm test
git diff --exit-code

- name: Run CLI E2E tests
if: ${{ matrix.os == 'windows-latest' }}
run: |
RUST_BACKTRACE=1 pnpm -r snap-test
Comment thread
branchseer marked this conversation as resolved.
git diff --exit-code

install-e2e-test:
name: vite install E2E test
# FIXME: Error: spawnSync esbuild ENOTSOCK
Expand Down
71 changes: 43 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ tokio = "1.48.0"
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "serde"] }
vite_error = { path = "crates/vite_error" }
vite_glob = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" }
vite_glob = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" }
vite_install = { path = "crates/vite_install" }
vite_path = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" }
vite_str = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" }
vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" }
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "ba48c0edb8700c26363b89812be1f93940947efc" }
vite_path = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" }
vite_str = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" }
vite_task = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" }
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task", rev = "d66556ab090fb5c5d85ecc7798a0fe9b6f1f26da" }
Comment thread
branchseer marked this conversation as resolved.
wax = "0.6.0"

napi = { version = "3.0.0", default-features = false, features = ["async", "error_anyhow"] }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/cli/snap-tests-todo/test-panicked-fix/steps.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/associate-existing-cache/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ hello
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 1 tasks • 1 cache hits • 0 cache misses
Performance: 100% cache hit rate, <variable>ms saved in total
Comment thread
branchseer marked this conversation as resolved.
Performance: 100% cache hit rate

Task Details:
────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/cli/snap-tests/builtin-different-cwd/steps.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/snap-tests/cache-clean/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ hello
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

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

Task Details:
────────────────────────────────────────────────
Expand Down
1 change: 1 addition & 0 deletions packages/cli/snap-tests/cache-clean/steps.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/snap-tests/cache-miss-command-change/snap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ bar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Statistics: 2 tasks • 1 cache hits • 1 cache misses
Performance: 50% cache hit rate, <variable>ms saved in total
Performance: 50% cache hit rate

Task Details:
────────────────────────────────────────────────
Expand All @@ -58,7 +58,7 @@ bar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

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

Task Details:
────────────────────────────────────────────────
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/cli/snap-tests/check-oxlint-env/steps.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/cli/snap-tests/command-dev-with-port/steps.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/cli/snap-tests/command-doc/steps.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/cli/snap-tests/command-helper/steps.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignoredPlatforms": ["win32"],
"env": {
"VITE_DISABLE_AUTO_INSTALL": "1"
},
Expand Down
Loading
Loading