Commit graph

460 commits

Author SHA1 Message Date
overlookmotel
3b2a3477d4 test(transformer): script to amend Babel fixtures (#7122)
Add a NodeJS script which amends Babel's fixtures in place to remove transform plugins which we don't support from `options.json` files. Where options are changed from the original, the script runs Babel transform with the new options to regenerate the fixture `output.js` files.

Currently limited to transforming the fixtures for `babel-plugin-transform-class-properties` transform, but we can also enable it for other plugins if we wish in future, to get additional test coverage.
2024-11-25 10:24:19 +00:00
Boshen
3169bc61d1
ci: clean up wasm type check (#7466)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-25 17:56:17 +08:00
Boshen
ecd0c0807f
ci: add type check for oxc_wasm.d.ts (#7465) 2024-11-25 16:52:35 +08:00
Boshen
5d65656517 refactor(oxc_index)!: move to own repo github.com/oxc-project/oxc-index-vec (#7464)
closes #7454
2024-11-25 08:36:44 +00:00
Boshen
e7423cfc87
ci: remove setup-bun 2024-11-25 00:02:21 +08:00
Alexander S.
9522d528f5
ci(editor): add type-check (#7427)
probably closes https://github.com/oxc-project/backlog/issues/135
2024-11-23 11:55:26 +08:00
Boshen
5145a5009b
ci: remove oxc_sourcemap from wasm test because insta is not supported 2024-11-21 15:23:43 +08:00
Alexander S.
5190b7fb28
test(editor): add test setup (#7361)
Tried it with `vitest`, but there was too many problems with `vscode`
integration.
That why I followed the official guide:
-
https://code.visualstudio.com/api/working-with-extensions/testing-extension#migrating-from-vscode
-
https://code.visualstudio.com/api/working-with-extensions/continuous-integration
2024-11-20 12:46:01 +08:00
Boshen
4c367b6746
chore(deps): update codecov/codecov-action action to v5 (#7353)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-19 16:01:09 +08:00
Alexander S.
4b8aecc8ed
ci(editor): add lint and compile checks (#7346) 2024-11-19 09:05:19 +08:00
Boshen
2e0364e21a
chore(deps): update crate-ci/typos action to v1.27.3 (#7228)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-10 00:41:21 +08:00
Boshen
c62e192a68
ci: fix oxlint-ecosystem-ci 2024-11-09 19:56:07 +08:00
Boshen
fc6dc52b72
ci(clippy): install ast-grep via npm (#7119) 2024-11-04 23:34:06 +08:00
renovate[bot]
4012e6ba0c
chore(deps): update crate-ci/typos action to v1.27.0 (#7061) 2024-11-01 23:46:54 +08:00
Boshen
46e5360372
chore(deps): update crate-ci/typos action to v1.26.8 (#6981)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-28 22:02:05 +08:00
Boshen
149b02c535
ci: run napi build and test for all changes 2024-10-28 09:10:54 +08:00
Boshen
eba417aa24
fix(npm): check in npm/parser-wasm (#6917)
closes #6914
2024-10-26 18:03:31 +08:00
Boshen
d3c5c78cba
ci: fix wasm check (#6910) 2024-10-26 11:10:04 +08:00
Boshen
f672ca0c29
ci: fix release wasm 2024-10-26 10:28:12 +08:00
Boshen
d49716bc3b
ci(release_types): changes for ready to publish 2024-10-25 11:16:03 +08:00
ottomated
b075982eaa fix(types): Change @oxc/types package name (#6874)
Closes #6862.

Possible options:
- `oxc-types`
- `@oxc-project/types`
- `@oxc-ast/types`
- `oxc-ast-types`
2024-10-24 20:04:09 +00:00
ottomated
1145341a92 feat(ast_tools): output typescript to a separate package (#6755)
Part of #6347.

Moves typescript logic from derive_estree into a new ast_tools generator.
2024-10-24 13:08:57 +00:00
Boshen
1c27a2c36c
ci(benchmark): do not skip linter benchmark
closes #6859
2024-10-24 21:01:55 +08:00
Boshen
6bc40c9321
chore(deps): update crate-ci/typos action to v1.26.1 (#6841)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-24 10:13:24 +08:00
Boshen
fb01208891
ci(benchmark): fix linter benchmark triggering on unrelated files (#6840)
fixes #6824
2024-10-24 10:10:33 +08:00
Boshen
661dfd2026
ci: no need to set draft for oxlint github release 2024-10-21 13:05:19 +08:00
Boshen
3e2adfdcc7
ci: use another cache for clippy (#6726)
closes #6715
2024-10-21 12:00:18 +08:00
Boshen
63f756c78b
ci: only cache dprint plugins on main branch (#6725) 2024-10-21 11:54:11 +08:00
Don Isaac
f05a2739da
ci(linter): skip linter benchmarks on unrelated file changes (#6705)
Skip building/running linter benchmarks on PRs that only change the
transformer, ID, formatter, or the minifier.
2024-10-21 10:02:35 +08:00
Don Isaac
78fe4af3ad
ci: skip coverage/benchmarks on more unrelated files (#6616)
Enhance file filters that trigger coverage and benchmark jobs by adding
more ignored globs.
2024-10-16 14:36:07 +08:00
Don Isaac
a00b43717d
ci: cache compiled dprint plugins (#6605)
Cache downloaded & compiled `dprint` plugins in `autofix.ci` between
runs. It should help shave some time off this pipeline.
2024-10-16 06:48:24 +08:00
Don Isaac
04d09b3d1b
ci: auto-label PRs with category tags based on their title (#6533)
Automatically add category labels (e.g. `C-enhancement`) to PRs based on
the conventional commit type (e.g. `feat`) used in their title.
2024-10-15 10:07:21 +08:00
dalaoshu
f70e93b2f5
refactor(oxc): ban index methods on std::str::Chars (#6075)
closes #6071
2024-10-10 21:35:24 +08:00
Boshen
49ce14b2fd chore(deps): update crate-ci/typos action to v1.26.0 (#6366) 2024-10-08 14:43:28 +00:00
Boshen
b5ba0e94fa
ci: remove mention of sccache-action 2024-10-08 22:26:50 +08:00
Boshen
40c00d53b0
ci: fix release napi 2024-10-08 21:24:36 +08:00
Boshen
5b5daec392 refactor(napi): use vitest (#6307) 2024-10-06 02:57:48 +00:00
Boshen
f51cbadf93
ci: temporary disable windows due to napi failing
Running unittests src\lib.rs (target\debug\deps\oxc_coverage-c37180833952f95b.exe)
Load Node-API [napi_get_last_error_info] from host runtime failed: GetProcAddress failed
2024-10-03 12:39:32 +08:00
Boshen
7bb745b085
ci: add trigger monitor oxc in prepare_release_crates
closes https://github.com/oxc-project/monitor-oxc/issues/44
2024-10-03 11:19:53 +08:00
overlookmotel
3da0334396
ci(miri): run Miri on changes to more crates (#6223)
Run Miri when changes are made to crates which contain a lot of unsafe
code.
2024-10-01 22:56:05 +08:00
renovate[bot]
7a381ee8f0
chore(deps): update crate-ci/typos action to v1.25.0 (#6200)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [crate-ci/typos](https://redirect.github.com/crate-ci/typos) | action
| minor | `v1.24.5` -> `v1.25.0` |

---

### Release Notes

<details>
<summary>crate-ci/typos (crate-ci/typos)</summary>

###
[`v1.25.0`](https://redirect.github.com/crate-ci/typos/releases/tag/v1.25.0)

[Compare
Source](https://redirect.github.com/crate-ci/typos/compare/v1.24.6...v1.25.0)

#### \[1.25.0] - 2024-10-01

##### Fixes

- Updated the dictionary with the [September
2024](https://redirect.github.com/crate-ci/typos/issues/1107) changes

###
[`v1.24.6`](https://redirect.github.com/crate-ci/typos/releases/tag/v1.24.6)

[Compare
Source](https://redirect.github.com/crate-ci/typos/compare/v1.24.5...v1.24.6)

#### \[1.24.6] - 2024-09-16

##### Fixes

-   Respect negation (`!`) in `extend-exclude`

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/oxc-project/oxc).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzguOTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Boshen <boshenc@gmail.com>
2024-10-01 12:42:33 +08:00
overlookmotel
509460b923
ci(transformer): run transformer tests under Miri (#6112)
Transformer tests include tests for unsafe code in `Stack` and
`NonEmptyStack`. Run these tests under Miri.
2024-09-27 17:27:28 +01:00
Boshen
cfb3f7a9a4
ci: fix wasm release missing wasm-pack 2024-09-23 11:45:17 +08:00
Boshen
91bb06e6ff
chore(wasm/parser): remove wasm-pack dependency (#5777)
It should be installed via `cargo binstall` for consistency.
2024-09-15 11:27:48 +08:00
Boshen
f14a534777
ci: fix oxlint publish 2024-09-12 14:53:45 +08:00
Boshen
a729b64380
ci: add a scope to release PR title
For passing PR title checker
2024-09-11 18:33:00 +08:00
Boshen
1ed4ccdcae
ci: fix failed to napi publish without --no-git-checks
We generate all the files so they are not commited to the repo
2024-09-11 18:30:15 +08:00
renovate[bot]
f475bba644
chore(deps): update peter-evans/create-pull-request action to v7 (#5698) 2024-09-11 18:26:33 +08:00
Boshen
63a830e08c
chore(dprint): format toml files (#5599)
Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
2024-09-08 14:26:16 +08:00
Boshen
2386d7fca2
chore(dprint): format yaml files (#5598) 2024-09-08 14:05:46 +08:00