fix: marketplace relative URL + CI lint errors #39
This file contains hidden or 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: 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 |