Skip to content

Commit 7da49b6

Browse files
committed
Initial commit for new instrumentation system
1 parent 5db7d7f commit 7da49b6

38 files changed

+1719
-15
lines changed

.github/workflows/benchmark.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
run: |
4040
sudo apt-get update
4141
sudo apt-get install -y wrk
42+
- name: Set up Rust
43+
run: |
44+
rustup toolchain install stable
45+
rustup default stable
46+
cargo install wasm-pack
4247
- run: npm install
4348
- run: npm run build
4449
- name: Run NoSQL Injection Benchmark

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
node-version: "18.x"
2727
registry-url: "https://registry.npmjs.org"
2828
scope: "@aikidosec"
29+
- name: Set up Rust
30+
run: |
31+
rustup toolchain install stable
32+
rustup default stable
33+
cargo install wasm-pack
2934
- name: Install dependencies
3035
run: npm run install-lib-only
3136
- name: Get the version

.github/workflows/end-to-end-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ jobs:
6363
- name: Build and run server
6464
run: |
6565
cd end2end/server && docker build -t server . && docker run -d -p 5874:3000 server
66+
- name: Set up Rust
67+
run: |
68+
rustup toolchain install stable
69+
rustup default stable
70+
cargo install wasm-pack
6671
- run: npm install
6772
- run: npm run build
6873
- run: npm run end2end

.github/workflows/lint-code.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ jobs:
1515
node-version: ${{ matrix.node-version }}
1616
cache: "npm"
1717
cache-dependency-path: "**/package-lock.json"
18+
- name: Set up Rust
19+
run: |
20+
rustup toolchain install stable
21+
rustup default stable
22+
rustup component add rustfmt clippy
23+
cargo install wasm-pack
1824
- run: npm run install-lib-only
1925
- run: npm run build
2026
- run: npm run lint
27+
- name: Check Rust formatting
28+
run: cd instrumentation-wasm && cargo fmt --check
29+
- name: Run Rust Linter
30+
run: cd instrumentation-wasm && cargo clippy

.github/workflows/unit-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ jobs:
7777
- name: Add local.aikido.io to /etc/hosts
7878
run: |
7979
sudo echo "127.0.0.1 local.aikido.io" | sudo tee -a /etc/hosts
80+
- name: Set up Rust
81+
run: |
82+
rustup toolchain install stable
83+
rustup default stable
84+
cargo install wasm-pack
8085
- run: npm run install-lib-only
8186
- run: npm run build
8287
- run: npm run test:ci

instrumentation-wasm/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

0 commit comments

Comments
 (0)