Skip to content

Commit a0930c0

Browse files
committed
ci
1 parent 84c11ab commit a0930c0

64 files changed

Lines changed: 2510 additions & 3446 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/biome-check.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 60 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,76 @@
11
name: CI
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
10-
11-
permissions:
12-
contents: read
13-
14-
defaults:
15-
run:
16-
shell: bash
17-
2+
on: push
183
jobs:
19-
check:
4+
cargo-test:
205
runs-on: ubuntu-latest
21-
226
steps:
237
- name: Checkout repository
248
uses: actions/checkout@v2
25-
9+
- name: Set up Rust
10+
uses: moonrepo/setup-rust@v1.3
11+
with:
12+
inherit-toolchain: true
2613
- name: Set up Node
2714
uses: actions/setup-node@v4
2815
with:
29-
node-version: 24
30-
31-
- name: Set up pnpm
32-
uses: pnpm/action-setup@v4
33-
16+
node-version: '24'
17+
- name: Run cargo test
18+
run: cargo test -q
19+
- name: Run wasm-pack build and test
20+
working-directory: crates/wasm
21+
run: |-
22+
cargo install wasm-pack
23+
wasm-pack test --node
24+
javascript-check-and-test:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
3429
- name: Set up Rust
35-
uses: actions-rust-lang/setup-rust-toolchain@v1
30+
uses: moonrepo/setup-rust@v1.3
3631
with:
37-
toolchain: stable
38-
target: wasm32-wasip1-threads
39-
rustflags: ""
40-
41-
- name: Cache cargo registry
42-
uses: actions/cache@v4
43-
with:
44-
path: ~/.cargo/registry
45-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
46-
restore-keys: |
47-
${{ runner.os }}-cargo-registry-
48-
49-
- name: Cache cargo index
50-
uses: actions/cache@v4
32+
targets: wasm32-wasip1-threads
33+
profile: complete
34+
inherit-toolchain: true
35+
- name: Set up Node
36+
uses: actions/setup-node@v4
5137
with:
52-
path: ~/.cargo/git
53-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
54-
restore-keys: |
55-
${{ runner.os }}-cargo-index-
56-
57-
- name: Cache cargo build
58-
uses: actions/cache@v4
38+
node-version: '24'
39+
- name: Set up pnpm
40+
uses: pnpm/action-setup@v4
5941
with:
60-
path: target
61-
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
62-
restore-keys: |
63-
${{ runner.os }}-cargo-build-target-
64-
65-
- name: Run cargo test
66-
run: cargo test
67-
68-
- name: Install wasm-pack
69-
run: cargo install wasm-pack
70-
71-
- name: Run wasm tests
72-
working-directory: crates/wasm
73-
run: wasm-pack test --node
74-
75-
- name: Install and Build Packages
76-
run: pnpm i && pnpm build
77-
78-
- name: Test For Packages Under Headless
42+
run_install: true
43+
- name: Run pnpm build packages
44+
run: pnpm build
45+
- name: Run biome format and lint check
46+
run: |-
47+
npx biome format
48+
npx biome lint
49+
- name: Test packages under headless
7950
uses: coactions/setup-xvfb@v1
8051
with:
8152
run: pnpm test
53+
codspeed-benchmark:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Checkout repository
57+
uses: actions/checkout@v2
58+
- name: Set up Rust
59+
uses: moonrepo/setup-rust@v1.3
60+
with:
61+
bins: cargo-codspeed
62+
inherit-toolchain: true
63+
- name: Set up Node
64+
uses: actions/setup-node@v4
65+
with:
66+
node-version: '24'
67+
- name: Set up pnpm
68+
uses: pnpm/action-setup@v4
69+
- name: Run CodSpeed build
70+
run: cargo codspeed build
71+
- name: Run CodSpeed benchmark
72+
uses: CodSpeedHQ/action@v4
73+
with:
74+
run: cargo codspeed run bench
75+
token: ${{ secrets.CODSPEED_TOKEN }}
76+
mode: walltime

.github/workflows/codspped.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

Cargo.lock

Lines changed: 29 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ members = [
3434
"helper/utils",
3535

3636
"tools/bootstrap",
37+
"tools/build-github-ci",
3738
"tools/compile-test",
3839
]
3940

@@ -51,3 +52,6 @@ paste = "1.0.15"
5152
indexmap = "2.11.4"
5253
tracing = "0.1.41"
5354
rayon = "1.11.0"
55+
clap = { version = "4.3.0", features = ["derive"] }
56+
expect-test = "1.5.1"
57+
project-root = "0.2.2"

biome.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
33
"assist": { "actions": { "source": { "organizeImports": "on" } } },
44
"files": {
55
"includes": [
66
"packages/**/*",
77
"!**/.vscode-test/**/*",
8+
"!**/next-env.d.ts",
89
"!**/.next/**/*",
910
"!**/playwright/.cache/**/*",
1011
"!**/test-results/**/*",
@@ -23,6 +24,7 @@
2324
"semicolons": "asNeeded",
2425
"arrowParentheses": "asNeeded",
2526
"quoteStyle": "single",
27+
"jsxQuoteStyle": "single",
2628
"trailingCommas": "none"
2729
},
2830
"jsxRuntime": "reactClassic"

crates/ast/src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ impl BinOpKind {
828828
}
829829
}
830830

831-
fn is_logical_op(self) -> bool {
831+
pub fn is_logical_op(self) -> bool {
832832
matches!(self, Self::LogicalOr | Self::LogicalAnd)
833833
}
834834

crates/ast/src/keyword.rs

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -169,35 +169,36 @@ prefilled_atom_map!(
169169
IDENT_OPTIONAL: ["optional", 110],
170170
IDENT_THEN: ["then", 111],
171171
IDENT_PROMISE: ["Promise", 112],
172-
IDENT_ITERATOR: ["iterator", 113],
173-
IDENT_ITERATOR_CLASS: ["Iterator", 114],
174-
IDENT_ASYNC_ITERATOR: ["asyncIterator", 115],
175-
IDENT_ASYNC_ITERATOR_CLASS: ["AsyncIterator", 116],
176-
IDENT_ASYNC_ITERABLE: ["AsyncIterable", 117],
177-
IDENT_ASYNC_ITERABLE_ITERATOR: ["AsyncIterableIterator", 118],
178-
IDENT_READABLE_STREAM_ASYNC_ITERATOR: ["ReadableStreamAsyncIterator", 119],
179-
IDENT_ASYNC_ITERATOR_OBJECT: ["AsyncIteratorObject", 120],
180-
IDENT_ITERABLE: ["Iterable", 121],
181-
IDENT_ITERABLE_ITERATOR: ["IterableIterator", 122],
182-
IDENT_ITERATOR_OBJECT: ["IteratorObject", 123],
183-
IDENT_GENERATOR: ["Generator", 124],
184-
IDENT_ASYNC_GENERATOR: ["AsyncGenerator", 125],
185-
IDENT_ARRAY_ITERATOR: ["ArrayIterator", 126],
186-
IDENT_MAP_ITERATOR: ["MapIterator", 127],
187-
IDENT_SET_ITERATOR: ["SetIterator", 128],
188-
IDENT_STRING_ITERATOR: ["StringIterator", 129],
189-
IDENT_NEXT: ["next", 130],
190-
IDENT_ITERATOR_YIELD_RESULT: ["IteratorYieldResult", 131],
191-
IDENT_ITERATOR_RETURN_RESULT: ["IteratorReturnResult", 132],
192-
IDENT_DONE: ["done", 133],
193-
IDENT_VALUE: ["value", 134],
194-
IDENT_REQUIRE: ["require", 135]
172+
IDENT_PROMISE_LIKE: ["PromiseLike", 113],
173+
IDENT_ITERATOR: ["iterator", 114],
174+
IDENT_ITERATOR_CLASS: ["Iterator", 115],
175+
IDENT_ASYNC_ITERATOR: ["asyncIterator", 116],
176+
IDENT_ASYNC_ITERATOR_CLASS: ["AsyncIterator", 117],
177+
IDENT_ASYNC_ITERABLE: ["AsyncIterable", 118],
178+
IDENT_ASYNC_ITERABLE_ITERATOR: ["AsyncIterableIterator", 119],
179+
IDENT_READABLE_STREAM_ASYNC_ITERATOR: ["ReadableStreamAsyncIterator", 120],
180+
IDENT_ASYNC_ITERATOR_OBJECT: ["AsyncIteratorObject", 121],
181+
IDENT_ITERABLE: ["Iterable", 122],
182+
IDENT_ITERABLE_ITERATOR: ["IterableIterator", 123],
183+
IDENT_ITERATOR_OBJECT: ["IteratorObject", 124],
184+
IDENT_GENERATOR: ["Generator", 125],
185+
IDENT_ASYNC_GENERATOR: ["AsyncGenerator", 126],
186+
IDENT_ARRAY_ITERATOR: ["ArrayIterator", 127],
187+
IDENT_MAP_ITERATOR: ["MapIterator", 128],
188+
IDENT_SET_ITERATOR: ["SetIterator", 129],
189+
IDENT_STRING_ITERATOR: ["StringIterator", 130],
190+
IDENT_NEXT: ["next", 131],
191+
IDENT_ITERATOR_YIELD_RESULT: ["IteratorYieldResult", 132],
192+
IDENT_ITERATOR_RETURN_RESULT: ["IteratorReturnResult", 133],
193+
IDENT_DONE: ["done", 134],
194+
IDENT_VALUE: ["value", 135],
195+
IDENT_REQUIRE: ["require", 136]
195196
},
196197
DIRECTIVES: {
197-
DIRECTIVE_USE_STRICT: ["use strict", 136]
198+
DIRECTIVE_USE_STRICT: ["use strict", 137]
198199
},
199200
SPECIAL_IDENTIFIER: {
200-
SPECIAL_IDENT_ERROR: ["<error>", 137]
201+
SPECIAL_IDENT_ERROR: ["<error>", 138]
201202
},
202203
}
203204
);

0 commit comments

Comments
 (0)