Commit graph

193 commits

Author SHA1 Message Date
Boshen
1dc365c204
ci: cargo test run --no-run --workspace -> cargo test --quiet --no-run
Doesn't seem to have a difference with `--workspace`
2023-11-23 21:55:41 +08:00
Boshen
8828b93ba0
ci: move e2e tests to its own ci 2023-11-18 09:42:50 +08:00
Boshen
526db66984
ci: make tests less verbose, printing takes time too 2023-11-16 18:33:11 +08:00
Boshen
c1c2a01135
ci: no need to build tests on PR branches (#1348) 2023-11-16 17:32:10 +08:00
Boshen
767744afc1
ci: remove cargo nextest because cargo test is now faster (#1341) 2023-11-16 13:31:51 +08:00
Boshen
a5734db437
ci: add timeout to benchmark 2023-11-16 10:54:38 +08:00
Boshen
41e145b4af
ci: don't run prettier conformance yet 2023-11-14 09:44:58 +08:00
Boshen
4a6f54cc1a
feat(prettier_conformance): add prettier test runner (#1262) 2023-11-13 20:14:35 +08:00
Boshen
c202bc9dcb
feat: Release resolver with NAPI (#1212) 2023-11-10 15:25:17 +00:00
Boshen
26705f2dbf
ci(release_napi_parser): check version change before build 2023-11-10 14:47:08 +08:00
Boshen
90ff0ddbe0
refactor: change @oxidation-compiler/napi to oxc-parser (#1209) 2023-11-10 06:17:05 +00:00
Boshen
e4c097bb91
chore: mv dir editor/vscode to editors/vscode (#1203) 2023-11-09 21:13:11 +08:00
Boshen
f7c4abe84c
Release vscode extension v0.0.3 2023-11-05 15:05:32 +08:00
Boshen
5aa7cc1718
publish vscode (#1144) 2023-11-05 15:03:22 +08:00
Boshen
38c90db0fe
ci: check unused dependencies via cargo machete (#1143) 2023-11-04 14:45:44 +00:00
Boshen
30297bb8c0
chore: remove unused workflows (#1142) 2023-11-04 22:23:09 +08:00
dependabot[bot]
6738066bfc
chore(deps): bump actions/setup-node from 3 to 4 (#1102) 2023-10-30 15:06:45 +08:00
Wenzhe Wang
7192520d2b
feat(transformer_conformance): use bun to run babel exec.js test cases (#1012)
closes #999 

Co-authored-by: Boshen <boshenc@gmail.com>
2023-10-25 03:06:07 +00:00
Boshen
bd99c7f174
chore(cli): remove cmd snapshot and building oxlint binary to speed up ci 2023-10-11 20:38:59 +08:00
Boshen
30c2b9184e
ci: do not install cargo-nextest on windows (saves 20s) 2023-10-08 13:28:26 +08:00
Boshen
f4cea34534
feat(transformer): add babel conformance test suite (#920) 2023-09-16 18:50:51 +08:00
Boshen
540fa03ec0
feat(benchmark): add transformer benchmark (#919) 2023-09-16 17:09:27 +08:00
Boshen
ceeee5909b
Remove HIR (#917)
closes #273
closes #814

HIR is removed from this PR, with the minifier being commented out.

HIR is a wonderful idea for compiling to lower languages, but after
sitting on it for a few months I found that it only adds confusion and
uncertainties to both myself and future contributors.

It also adds too much burden to maintainers if we plan to support more
downstream tools.

1 AST is the only way.
2023-09-15 23:48:32 +08:00
Boshen
8b17a9cc76
ci: cache the oxlint build for ecosystem-ci 2023-09-12 00:25:07 +08:00
dependabot[bot]
5de4841a3e
chore(deps): bump actions/checkout from 3 to 4 (#894) 2023-09-11 18:52:08 +08:00
Boshen
1d03ec32ff
ci(benchmark): install toolchain first 2023-09-09 15:46:34 +08:00
Boshen
28f728f0c0
chore(fuzz): add --sanitizer none command 2023-09-09 12:15:57 +08:00
Boshen
a2dbfeeb25
refactor: clean up fuzzer, move it to repo root (#872) 2023-09-09 11:58:32 +08:00
Boshen
56aaf31fb1
refactor(benchmark): use codspeed for all benchmarks (#839) 2023-09-02 20:35:48 +08:00
Boshen
e4a3838ecb
chore(resolver): benchmark with codspeed (#838) 2023-09-02 18:27:37 +08:00
Boshen
82e64f8527
ci: remove codecov from PRs
Because we don't use this metric when review PRs.
It also runs too slow for our PRs.
2023-09-02 17:57:23 +08:00
Boshen
75af639d4a
chore(rust): remove unicode support from regex for smaller binary size (#823) 2023-09-01 12:42:58 +08:00
dependabot[bot]
aa1277caed
chore(deps): bump EndBug/version-check from 1 to 2 (#825)
Bumps [EndBug/version-check](https://github.com/endbug/version-check)
from 1 to 2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/endbug/version-check/releases">EndBug/version-check's
releases</a>.</em></p>
<blockquote>
<h2>v2.0.0</h2>
<p>From now on, the <code>changed</code> output will always be either
<code>'true'</code> or <code>'false'</code>, and never
<code>undefined</code>.</p>
<h2>v1.6.0</h2>
<p>You can now use the <code>::before</code> tag in private repos (PR <a
href="https://redirect.github.com/endbug/version-check/issues/27">#27</a>)</p>
<h2>v1.5.0</h2>
<p>You can now use <code>::before</code> as the <code>file-url</code>
parameter: it will resolve to the file from the commit before the push
event that triggered the workflow run.
Also, this repo now follows the All Contributors specifications </p>
<h2>v1.4.0</h2>
<p>This version adds three new options: <code>file-url</code>,
<code>assume-same-version</code> and <code>static-checking</code>.
Please see the README to find out how to use them.
As always, if you find any bugs please let me know by opening a new
issue in this repo.</p>
<h2>v1.3.0</h2>
<p>This version adds two features:</p>
<ul>
<li>The action can now be used with PRs</li>
<li>The action now has a <code>commit</code> output, from which you can
grab the sha of the commit where the version change has been
detected</li>
</ul>
<h2>v1.2.2</h2>
<p>This makes the action automatically build with
<code>@zeit/ncc</code>. No significant changes should be noticed by the
end user, if not a slight improvement in performance.</p>
<h2>v1.2.1</h2>
<p>This patch fixes issue <a
href="https://redirect.github.com/endbug/version-check/issues/11">#11</a>:
the action wasn't detecting versions with a more complex format, like
<code>1.2.3-alpha.10.beta.0+build.unicorn.rainbow</code>, because it was
stopping at the patch number (<code>1.2.3</code>). This should now be
fixed</p>
<h2>v1.2.0</h2>
<p>This release adds the <code>version</code> output: it's a string with
the new version, and can be used to, for example, create a new release
with the version name.</p>
<h2>v1.1.1</h2>
<p>This release is just to add the major version tag <code>v1</code>,
which can be used to keep the action updated while avoiding breaking
changes.</p>
<h2>v1.1.0</h2>
<p>This version adds support for private repositories, you just need to
pass the bearer GitHub token as an input. You can find more info about
that on the action page.</p>
<h2>v1.0.1</h2>
<p>This adds a useful example if you want to use this action to publish
your package to both NPM and GitHub Package Registry.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="323ba664f1"><code>323ba66</code></a>
2.1.1</li>
<li><a
href="6d2f38ddd5"><code>6d2f38d</code></a>
docs: add Gerrit0 as a contributor for code (<a
href="https://redirect.github.com/endbug/version-check/issues/185">#185</a>)</li>
<li><a
href="82e9bfe44e"><code>82e9bfe</code></a>
Update to Node 16 (<a
href="https://redirect.github.com/endbug/version-check/issues/184">#184</a>)</li>
<li><a
href="d2a27886f3"><code>d2a2788</code></a>
chore(deps-dev): bump all-contributors-cli from 6.22.0 to 6.23.1 (<a
href="https://redirect.github.com/endbug/version-check/issues/183">#183</a>)</li>
<li><a
href="dc6b9cdf68"><code>dc6b9cd</code></a>
[auto] build: update compiled version</li>
<li><a
href="9dda8f6b23"><code>9dda8f6</code></a>
chore(deps-dev): bump all-contributors-cli from 6.20.5 to 6.22.0 (<a
href="https://redirect.github.com/endbug/version-check/issues/182">#182</a>)</li>
<li><a
href="1da399082b"><code>1da3990</code></a>
chore(deps): bump <code>@​actions/core</code> from 1.9.1 to 1.10.0 (<a
href="https://redirect.github.com/endbug/version-check/issues/181">#181</a>)</li>
<li><a
href="254e871301"><code>254e871</code></a>
chore(deps-dev): bump typescript from 4.8.3 to 4.8.4 (<a
href="https://redirect.github.com/endbug/version-check/issues/180">#180</a>)</li>
<li><a
href="e3c71fe61d"><code>e3c71fe</code></a>
chore(deps-dev): bump all-contributors-cli from 6.20.4 to 6.20.5 (<a
href="https://redirect.github.com/endbug/version-check/issues/179">#179</a>)</li>
<li><a
href="e285746efc"><code>e285746</code></a>
chore(deps-dev): bump all-contributors-cli from 6.20.0 to 6.20.4 (<a
href="https://redirect.github.com/endbug/version-check/issues/178">#178</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/endbug/version-check/compare/v1...v2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=EndBug/version-check&package-manager=github_actions&previous-version=1&new-version=2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-01 11:39:38 +08:00
dependabot[bot]
40d5f3b841
chore(deps): bump peter-evans/create-or-update-comment from 2 to 3 (#824)
Bumps
[peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment)
from 2 to 3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/peter-evans/create-or-update-comment/releases">peter-evans/create-or-update-comment's
releases</a>.</em></p>
<blockquote>
<h2>Create or Update Comment v3.0.0</h2>
<h2>What's new</h2>
<ul>
<li>Now supports replacing reactions on a comment by setting input
<code>reactions-edit-mode</code> to <code>replace</code>. The default
behaviour has not changed and will <code>append</code> reactions.</li>
<li>Chose how the action should append the comment body with input
<code>append-separator</code>. The default behaviour is to add a
<code>newline</code>. Other options are <code>space</code> and
<code>none</code>.</li>
<li><code>body-file</code> is deprecated in favour of
<code>body-path</code>. The behaviour is unchanged.</li>
</ul>
<h2>What's Changed</h2>
<ul>
<li>v3 by <a
href="https://github.com/peter-evans"><code>@​peter-evans</code></a> in
<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/161">peter-evans/create-or-update-comment#161</a></li>
<li>Update some links in the README by <a
href="https://github.com/Kurt-von-Laven"><code>@​Kurt-von-Laven</code></a>
in <a
href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/152">peter-evans/create-or-update-comment#152</a></li>
<li>9 dependency updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/Kurt-von-Laven"><code>@​Kurt-von-Laven</code></a>
made their first contribution in <a
href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/152">peter-evans/create-or-update-comment#152</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/peter-evans/create-or-update-comment/compare/v2.1.1...v3.0.0">https://github.com/peter-evans/create-or-update-comment/compare/v2.1.1...v3.0.0</a></p>
<h2>Create or Update Comment v2.1.1</h2>
<p>⚙️ Fixes the recent Json5 vulnerability.</p>
<h2>What's Changed</h2>
<ul>
<li>11 dependency updates by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/peter-evans/create-or-update-comment/compare/v2.1.0...v2.1.1">https://github.com/peter-evans/create-or-update-comment/compare/v2.1.0...v2.1.1</a></p>
<h2>Create or Update Comment v2.1.0</h2>
<p> Adds input <code>body-file</code>, the path to a file containing
the comment body.</p>
<h2>What's Changed</h2>
<ul>
<li>Replace set-output by <a
href="https://github.com/peter-evans"><code>@​peter-evans</code></a> in
<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/130">peter-evans/create-or-update-comment#130</a></li>
<li>Bump chuhlomin/render-template from 1.5 to 1.6 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/132">peter-evans/create-or-update-comment#132</a></li>
<li>Support reading body from a file by <a
href="https://github.com/umanghome"><code>@​umanghome</code></a> in <a
href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/115">peter-evans/create-or-update-comment#115</a></li>
<li>Add input body-file by <a
href="https://github.com/peter-evans"><code>@​peter-evans</code></a> in
<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/133">peter-evans/create-or-update-comment#133</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/umanghome"><code>@​umanghome</code></a>
made their first contribution in <a
href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/115">peter-evans/create-or-update-comment#115</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/peter-evans/create-or-update-comment/compare/v2.0.1...v2.1.0">https://github.com/peter-evans/create-or-update-comment/compare/v2.0.1...v2.1.0</a></p>
<h2>Create or Update Comment v2.0.1</h2>
<p>⚙️ Bumps <code>@actions/core</code> to transition away from <a
href="https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/">deprecated
runner commands</a>.</p>
<h2>What's Changed</h2>
<ul>
<li>Add workflow permissions by <a
href="https://github.com/peter-evans"><code>@​peter-evans</code></a> in
<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/pull/120">peter-evans/create-or-update-comment#120</a></li>
<li>9 dependency updates by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>
and <a
href="https://github.com/dependabot">https://github.com/dependabot</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/peter-evans/create-or-update-comment/compare/v2.0.0...v2.0.1">https://github.com/peter-evans/create-or-update-comment/compare/v2.0.0...v2.0.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="c6c9a1a660"><code>c6c9a1a</code></a>
Update distribution (<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/issues/210">#210</a>)</li>
<li><a
href="ce3fa353c4"><code>ce3fa35</code></a>
fix: truncate long comment bodies during comment update too (<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/issues/205">#205</a>)</li>
<li><a
href="5825e577e3"><code>5825e57</code></a>
Bump eslint from 8.41.0 to 8.42.0 (<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/issues/209">#209</a>)</li>
<li><a
href="507508615a"><code>5075086</code></a>
Bump <code>@​typescript-eslint/parser</code> from 5.59.8 to 5.59.9 (<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/issues/208">#208</a>)</li>
<li><a
href="33041066d9"><code>3304106</code></a>
Bump <code>@​typescript-eslint/eslint-plugin</code> from 5.59.8 to
5.59.9 (<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/issues/207">#207</a>)</li>
<li><a
href="84d3b35097"><code>84d3b35</code></a>
Bump eslint-plugin-github from 4.7.0 to 4.8.0 (<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/issues/206">#206</a>)</li>
<li><a
href="542d5c2467"><code>542d5c2</code></a>
Bump <code>@​typescript-eslint/eslint-plugin</code> from 5.59.7 to
5.59.8 (<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/issues/203">#203</a>)</li>
<li><a
href="580d37cf7c"><code>580d37c</code></a>
Bump <code>@​typescript-eslint/parser</code> from 5.59.7 to 5.59.8 (<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/issues/204">#204</a>)</li>
<li><a
href="f8a0c20f69"><code>f8a0c20</code></a>
Bump <code>@​types/node</code> from 18.16.14 to 18.16.16 (<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/issues/202">#202</a>)</li>
<li><a
href="6534843181"><code>6534843</code></a>
Bump <code>@​typescript-eslint/eslint-plugin</code> from 5.59.6 to
5.59.7 (<a
href="https://redirect.github.com/peter-evans/create-or-update-comment/issues/201">#201</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/peter-evans/create-or-update-comment/compare/v2...v3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=peter-evans/create-or-update-comment&package-manager=github_actions&previous-version=2&new-version=3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-01 11:39:16 +08:00
Devin-Yeung
fe2d8448a7
chore(ci): check links in CI (#803)
As mentioned in
https://github.com/web-infra-dev/oxc/pull/800#discussion_r1306616508, we
better check the validity of links in CI

---------

Co-authored-by: Boshen <boshenc@gmail.com>
2023-08-28 11:46:56 +08:00
Boshen
592137586c
feat(cli): use insta_cmd for cli snapshot testing (#791)
closes #776
2023-08-25 16:26:34 +08:00
Boshen
a5a601e58d
ci: remove needs: cache from ecosystem-test 2023-08-25 16:24:14 +08:00
Boshen
1a591c7a2d
ci: build benchmark binary separately for reducing total execution time (#789)
benchmark execution time reduced from 15 mins to 12 mins. Time reduction
should be more noticeable for large code changes which require longer
compile time.
2023-08-25 14:40:08 +08:00
Boshen
773b77922e
ci: add write permission for creating releases 2023-08-21 15:54:37 +08:00
Boshen
9a20902dac
ci: add "id-token" permission for publishing project provenance 2023-08-21 14:47:10 +08:00
Boshen
3c375c413e
ci: use node v18 for npm project provenance 2023-08-21 14:27:02 +08:00
Boshen
0c51b6cac9
chore: add publish to npm with project provenance 2023-08-21 12:25:51 +08:00
Boshen
5bcd736ae9
fix(cli): correctly parse clippy like filters "-A rule -D rule" (#758) 2023-08-18 22:00:05 +08:00
Boshen
a9c4fddb6d
refactor(cli): use bpaf instead clap (#756) 2023-08-18 17:14:06 +08:00
Boshen
43ae471fcc
ci: fix paths-ignore for conformance.yml 2023-08-08 14:36:49 +08:00
Boshen
5baa9b9d45
ci: filter out more files that trigger the CI jobs 2023-08-08 14:13:39 +08:00
Boshen
290a0e073f
ci: fix codecov not being uploaded from main 2023-08-08 14:04:38 +08:00
Boshen
5e0edf14fe
ci: remove accident push trigger from website.yml 2023-07-27 18:25:17 +08:00
Boshen
b338f5f53d
ci: ignore more crates from when running benchmark 2023-07-27 18:11:37 +08:00
Boshen
b52ec3f344
ci: remove cargo-udeps 2023-07-27 14:09:42 +08:00