Fix types #2637
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |