Skip to content

docs: add Chinese README and language switcher #12

docs: add Chinese README and language switcher

docs: add Chinese README and language switcher #12

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: web/package-lock.json
- name: Build web bundle
working-directory: web
run: |
npm ci
npm run build
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: cargo fmt --check
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy --all-targets --workspace -- -D warnings
- name: cargo test
run: cargo test --workspace --locked