feat: shared pseudoscript-lsp-core — stdio + LSP-over-wasm, one API #46
Workflow file for this run
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: test | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: test-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| rust: | |
| name: Rust (fmt, clippy, test) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| # The dependency-install tests shell out to `git commit`, which needs an | |
| # author identity the bare runner lacks. | |
| - name: Configure git identity for tests | |
| run: | | |
| git config --global user.email "ci@flying-dice.test" | |
| git config --global user.name "pseudoscript CI" | |
| - run: cargo fmt --all --check | |
| - run: cargo clippy --workspace --all-targets -- -D warnings | |
| - run: cargo test --workspace | |
| web: | |
| name: Web IDE (vitest, build, e2e, storybook) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: web-ide | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: web-ide/package-lock.json | |
| - run: npm ci | |
| # The wasm bundle is vendored under src/lib/pds-wasm, so no Rust build here. | |
| - run: npm run check | |
| - run: npm run test | |
| - run: npm run build | |
| - run: npx playwright install --with-deps chromium | |
| - run: npm run test:e2e | |
| - run: npm run build-storybook | |
| landing: | |
| name: Landing (svelte-check, build) | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: web-landing | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: web-landing/package-lock.json | |
| - run: npm ci | |
| - run: npm run check | |
| - run: npm run build |