From 695fbddf83942d98af4f16a0df64786abb58595b Mon Sep 17 00:00:00 2001 From: Sysix <3897725+Sysix@users.noreply.github.com> Date: Fri, 8 Aug 2025 13:43:33 +0000 Subject: [PATCH] test(oxlint): fix `--type-aware` test on `big-endian` and skip for `windows` (#12910) https://github.com/oxc-project/oxc/actions/runs/16831534930/job/47680206750 https://github.com/oxc-project/oxc/actions/runs/16831534945/job/47680206813 https://github.com/oxc-project/oxc/actions/runs/16831534945/job/47680206827 --- .github/workflows/ci.yml | 1 + .github/workflows/codecov.yml | 2 ++ apps/oxlint/src/lint.rs | 1 + 3 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bbb4d72176b6..406d8cc303bac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,6 +108,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 + - uses: oxc-project/setup-node@f42e3bda950c7454575e78ee4eaac880a077700c # v1.0.0 - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0 with: save-cache: ${{ github.ref_name == 'main' }} diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index d6d1bd5541509..0a34182e9afdb 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -28,6 +28,8 @@ jobs: - name: Clone submodules uses: ./.github/actions/clone-submodules + - uses: oxc-project/setup-node@f42e3bda950c7454575e78ee4eaac880a077700c # v1.0.0 + - uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0 with: cache-key: codecov diff --git a/apps/oxlint/src/lint.rs b/apps/oxlint/src/lint.rs index 262ae5aac69ff..f394eefce6594 100644 --- a/apps/oxlint/src/lint.rs +++ b/apps/oxlint/src/lint.rs @@ -1215,6 +1215,7 @@ mod test { } #[test] + #[cfg(not(target_os = "windows"))] // ToDo: my guess is the missing `.exe` suffix when searching fn test_tsgolint() { let args = &["--type-aware", "-c", ".oxlintrc.json"]; Tester::new().with_cwd("fixtures/tsgolint".into()).test_and_snapshot(args);