feat(web): add English locale support and fix missing translation key… #92
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: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: web/.node-version | |
| cache: "npm" | |
| cache-dependency-path: web/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: web | |
| - name: Build frontend | |
| run: npm run build | |
| working-directory: web | |
| - name: Lint frontend | |
| run: npm run lint | |
| working-directory: web | |
| - name: Upload frontend artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: web-dist | |
| path: web/dist/ | |
| if-no-files-found: error | |
| check: | |
| needs: [build-frontend] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Download frontend assets | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: web-dist | |
| path: web/dist/ | |
| - name: Install Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| components: clippy,rustfmt | |
| - name: Install build dependencies | |
| run: sudo apt-get update && sudo apt-get install -y cmake g++ libclang-dev | |
| - name: cargo check | |
| run: cargo check | |
| - name: cargo clippy | |
| run: cargo clippy -- -D warnings | |
| - name: cargo fmt | |
| run: cargo fmt --check | |
| - name: cargo audit | |
| uses: actions-rust-lang/audit@v1 | |
| with: | |
| args: --deny warnings | |
| - name: cargo machete | |
| run: command -v cargo-machete || cargo install cargo-machete --locked && cargo machete | |
| - name: cargo outdated | |
| run: command -v cargo-outdated || cargo install cargo-outdated --locked && cargo outdated --exit-code 1 --root-deps-only | |
| test: | |
| needs: [build-frontend] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Download frontend assets | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: web-dist | |
| path: web/dist/ | |
| - name: Install Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Install build dependencies | |
| run: sudo apt-get update && sudo apt-get install -y cmake g++ libclang-dev | |
| - name: cargo test | |
| run: cargo test |