chore: ignore generated coverage artifacts #19
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 | |
| - "feature/**" | |
| - "codex/**" | |
| pull_request: | |
| jobs: | |
| backend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./textlingo-desktop/src-tauri | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Linux system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libglib2.0-dev \ | |
| libgtk-3-dev \ | |
| libsoup-3.0-dev \ | |
| libwebkit2gtk-4.1-dev \ | |
| libjavascriptcoregtk-4.1-dev \ | |
| libayatana-appindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Download sidecar binaries | |
| working-directory: . | |
| run: | | |
| chmod +x script/download_binaries.sh | |
| bash script/download_binaries.sh | |
| - name: Prepare frontend dist for Tauri context | |
| working-directory: . | |
| run: mkdir -p textlingo-desktop/dist | |
| - name: Rust tests | |
| run: cargo test --all-features --all-targets | |
| frontend: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./textlingo-desktop | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: textlingo-desktop/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Frontend test + coverage gate | |
| run: npm run coverage | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps chromium | |
| - name: Playwright E2E | |
| run: npm run e2e |