Skip to content

Add first tests, bug fixes #2641

Add first tests, bug fixes

Add first tests, bug fixes #2641

Workflow file for this run

name: Lint code
on: push
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- name: Set up Rust
run: |
rustup toolchain install stable
rustup default stable
rustup component add rustfmt clippy
cargo install wasm-pack
- run: npm run install-lib-only
- run: npm run build
- run: npm run lint
- name: Check Rust formatting
run: cd instrumentation-wasm && cargo fmt --check
- name: Run Rust Linter
run: cd instrumentation-wasm && cargo clippy