frontend: fix footer links #80
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: Frontend Unit Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'frontend/**' | |
| - '.github/workflows/frontend-tests.yml' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'frontend/**' | |
| - '.github/workflows/frontend-tests.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Setup Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: wasm32-unknown-unknown | |
| - name: Install wasm-pack | |
| run: npm install -g wasm-pack | |
| - name: Install dependencies | |
| working-directory: ./frontend | |
| run: npm ci | |
| - name: Run ESLint | |
| working-directory: ./frontend | |
| run: npm run lint | |
| - name: Run typecheck | |
| working-directory: ./frontend | |
| run: npm run typecheck | |
| - name: Run unit tests | |
| working-directory: ./frontend | |
| run: npm run test:unit:run |