Skip to content

fix: marketplace relative URL + CI lint errors #39

fix: marketplace relative URL + CI lint errors

fix: marketplace relative URL + CI lint errors #39

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint-and-typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: native
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libasound2-dev
- run: npm ci
# Lint
- name: ESLint
run: npm run lint
# Rust checks
- name: Clippy
working-directory: native
run: cargo clippy -- -D warnings
- name: Rust tests
working-directory: native
run: cargo test
# Native addon build
- name: Build native addon
run: npm run build:native
# TypeScript checks
- name: Typecheck
run: npm run typecheck
# Unit tests
- name: Test
run: npm test
# Vite build
- name: Build (vite)
run: npm run build:vite