Skip to content

Commit 9fabf29

Browse files
committed
debug
1 parent afb26fa commit 9fabf29

2 files changed

Lines changed: 3 additions & 111 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -25,119 +25,12 @@ defaults:
2525
shell: bash
2626

2727
jobs:
28-
test:
29-
name: Test
30-
strategy:
31-
fail-fast: false
32-
matrix:
33-
include:
34-
- os: ubuntu-latest
35-
target: x86_64-unknown-linux-gnu
36-
- os: windows-latest
37-
target: x86_64-pc-windows-msvc
38-
- os: namespace-profile-mac-default
39-
target: aarch64-apple-darwin
40-
runs-on: ${{ matrix.os }}
41-
steps:
42-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
43-
with:
44-
persist-credentials: false
45-
submodules: true
46-
47-
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
48-
with:
49-
save-cache: ${{ github.ref_name == 'main' }}
50-
cache-key: test
51-
52-
- run: rustup target add x86_64-unknown-linux-musl
53-
if: ${{ matrix.os == 'ubuntu-latest' }}
54-
55-
- name: Configure Git for access to vite-task
56-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "https://github.com/"
57-
58-
- run: cargo check --all-targets --all-features
59-
env:
60-
RUSTFLAGS: '-D warnings --cfg tokio_unstable' # also update .cargo/config.toml
61-
62-
- run: cargo test
63-
64-
lint:
65-
name: Lint
66-
runs-on: ubuntu-latest
67-
steps:
68-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
69-
with:
70-
persist-credentials: false
71-
submodules: true
72-
73-
- name: Configure Git for access to vite-task
74-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "https://github.com/"
75-
76-
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
77-
with:
78-
save-cache: ${{ github.ref_name == 'main' }}
79-
cache-key: lint
80-
tools: dprint,cargo-shear
81-
components: clippy rust-docs rustfmt
82-
83-
- run: |
84-
dprint check
85-
cargo shear
86-
cargo fmt --check
87-
# cargo clippy --all-targets --all-features -- -D warnings
88-
RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
89-
90-
- uses: crate-ci/typos@85f62a8a84f939ae994ab3763f01a0296d61a7ee # v1.36.2
91-
with:
92-
files: .
93-
94-
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
95-
96-
- name: Deduplicate dependencies
97-
run: pnpm dedupe --check
98-
99-
run:
100-
name: Run task
101-
runs-on: ubuntu-latest
102-
steps:
103-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
104-
with:
105-
persist-credentials: false
106-
submodules: true
107-
108-
- name: Configure Git for access to vite-task
109-
run: git config --global url."https://x-access-token:${{ secrets.VITE_TASK_TOKEN }}@github.com/".insteadOf "https://github.com/"
110-
111-
- uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0
112-
with:
113-
save-cache: ${{ github.ref_name == 'main' }}
114-
cache-key: run
115-
116-
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
117-
118-
- name: Build self
119-
run: pnpm bootstrap-cli
120-
121-
- name: Run self
122-
run: vite run -r build
123-
124-
- name: Print help for built-in commands
125-
run: |
126-
vite -h
127-
vite run -h
128-
vite lint -h
129-
vite test -h
130-
vite build -h
131-
vite fmt -h
132-
13328
cli-e2e-test:
13429
name: CLI E2E test
13530
strategy:
13631
fail-fast: false
13732
matrix:
13833
include:
139-
- os: ubuntu-latest
140-
- os: namespace-profile-mac-default
14134
- os: windows-latest
14235
runs-on: ${{ matrix.os }}
14336
steps:
@@ -163,7 +56,7 @@ jobs:
16356
- uses: oxc-project/setup-node@fdbf0dfd334c4e6d56ceeb77d91c76339c2a0885 # v1.0.4
16457

16558
- name: Build CLI
166-
run: pnpm run bootstrap-cli
59+
run: VITE_PLUS_CLI_DEBUG=1 pnpm run bootstrap-cli
16760

16861
- name: Run CLI lint
16962
run: pnpm lint
@@ -239,9 +132,6 @@ jobs:
239132
done:
240133
runs-on: ubuntu-latest
241134
needs:
242-
- test
243-
- lint
244-
- run
245135
- cli-e2e-test
246136
steps:
247137
- run: exit 1

packages/cli/binding/src/cli.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,9 @@ pub async fn main<
668668
oxlint_config_path.as_path().to_string_lossy().into_owned(),
669669
]);
670670
}
671+
println!("Before lint");
671672
let summary = lint(lint_fn, &workspace, args).await?;
673+
println!("After lint: {:?}", summary);
672674
workspace.unload().await?;
673675
summary
674676
}

0 commit comments

Comments
 (0)