fix: finally resolve long standing editor UX blockers #52
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, yak-shears-py] | |
| pull_request: | |
| branches: [main, yak-shears-py] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| # Override MISE_ENV=hk, which is local-only | |
| - uses: jdx/mise-action@v2 | |
| with: | |
| mise_toml: | | |
| [env] | |
| MISE_ENV = "ci" | |
| # uv is not versioned with mise | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: | | |
| uv sync | |
| mise run build | |
| - name: Create test user | |
| run: uv run yak-shears-users create test@example.com --password=secure123 | |
| - name: Type Typecheck | |
| run: mise run typecheck | |
| - name: Install Playwright browser for headless Chrome (fastest install) | |
| run: uv run playwright install chromium --only-shell | |
| - name: Run Tests | |
| run: mise run test | |
| - name: Upload test artifacts on failure | |
| if: ${{ !cancelled() && failure() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-artifacts | |
| path: | | |
| playwright-report/ | |
| playwright-traces/ | |
| test-results/ | |
| retention-days: 1 |