Skip to content

Commit 2069006

Browse files
rochdevbizob2828
authored andcommitted
feat: Rewrite orchestrion in javascript (#41)
1 parent 4523b79 commit 2069006

65 files changed

Lines changed: 1609 additions & 7442 deletions

File tree

Some content is hidden

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

.cargo/config.toml

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

.github/workflows/ci.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,31 @@ env:
1010
CARGO_TERM_COLOR: always
1111
RUST_VERSION: 1.87.0
1212
jobs:
13+
lint:
14+
name: Lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
20+
- name: Install
21+
run: npm install
22+
- name: Run linter
23+
run: npm run lint
24+
1325
test:
14-
name: Build, Lint & Test
26+
name: Test (${{ matrix.node-version }})
27+
strategy:
28+
matrix:
29+
node-version: [18, 20, 22, 24, latest]
1530
runs-on: ubuntu-latest
1631
steps:
1732
- name: Checkout
18-
uses: actions/checkout@v2
19-
- name: Install Rust ${{ env.RUST_VERSION }}
20-
run: rustup toolchain install ${{ env.RUST_VERSION }} --component clippy --component rustfmt && rustup default ${{ env.RUST_VERSION }}
21-
- name: Cache
22-
uses: Swatinem/rust-cache@v2
23-
- uses: actions/checkout@v4
33+
uses: actions/checkout@v4
2434
- uses: actions/setup-node@v4
2535
with:
26-
node-version-file: 'package.json'
27-
- name: Build
28-
run: cargo build --all-features
36+
node-version: ${{ matrix.node-version }}
37+
- name: Install
38+
run: npm install
2939
- name: Run tests
30-
run: cargo test --all-features
31-
- name: Run clippy
32-
run: cargo clippy --all-features -- -D warnings
33-
- name: Run fmt
34-
run: cargo fmt --all -- --check
35-
- name: Build and Test wasm
36-
run: npm install && npm run build && npm test
37-
# This check is currently failing even after updating the license file.
38-
# - name: Install license tool
39-
# run: cargo install dd-rust-license-tool
40-
# - name: Run license tool
41-
# run: dd-rust-license-tool check
40+
run: npm test

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ tests/*/instrumented.*
55
pkg/
66
node_modules/
77
package-lock.json
8-
index.js
9-
index.d.ts
8+
pnpm-lock.yaml
9+
yarn.lock
10+
bun.lock
11+
bun.lockb
12+
vlt-lock.json

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ Once you have some code ready, open a PR, [linking it to the issue](https://docs
2727
```bash
2828
$ git clone git@github.com:nodejs/orchestrion-js.git
2929
$ cd orchestrion-js
30-
$ rustup install stable
31-
$ cargo check # or `cargo test`, etc.
30+
$ npm install
3231
```
3332

3433
### Testing your changes
3534

3635
```bash
37-
cargo test
36+
npm test
3837
```
3938

4039
## Contributing to issues

0 commit comments

Comments
 (0)