Skip to content

fix(diagnostics): guard semantic analysis during initialized setup an… #211

fix(diagnostics): guard semantic analysis during initialized setup an…

fix(diagnostics): guard semantic analysis during initialized setup an… #211

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
rust:
name: Rust (lint + test)
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
with:
workspaces: server
- name: Check source stubs
run: ../scripts/check-stubs.sh --kind source data/stubs
- name: Bundle stubs
run: ../scripts/bundle-stubs.sh
- name: Check bundled stubs
run: ../scripts/check-stubs.sh --kind bundled ../client/stubs
- name: Check formatting
run: cargo fmt --all --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Tests
run: cargo test --all
client:
name: Client (TypeScript)
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: client/package-lock.json
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run lint
- name: Build
run: npm run build