Skip to content

feat(i18n): migrate UI components to use i18next for localization #742

feat(i18n): migrate UI components to use i18next for localization

feat(i18n): migrate UI components to use i18next for localization #742

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
# Node.js/TypeScript build and test
node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: '10.26.1'
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build all packages
run: pnpm build
- name: Run typecheck
run: pnpm typecheck
- name: Run tests
run: pnpm test
# Rust build and test
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- name: Cache cargo build
uses: actions/cache@v4
with:
path: rust/target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Check formatting
working-directory: rust
run: cargo fmt -- --check
- name: Run clippy
working-directory: rust
run: cargo clippy -- -D warnings
- name: Build binaries
working-directory: rust
run: cargo build --release
- name: Run tests
working-directory: rust
run: cargo test
- name: Setup Node.js (for spec validation)
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Copy Rust binaries
run: node scripts/copy-rust-binaries.mjs
- name: Validate specs
run: node bin/lean-spec.js validate --warnings-only