mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Install frontend dependencies
|
|
run: cd frontend && bun install --frozen-lockfile
|
|
|
|
- name: Lint
|
|
run: bun run lint
|
|
|
|
- name: Type check
|
|
run: bun run build
|
|
|
|
- name: Run tests
|
|
run: bun test
|
|
|
|
- name: Install Playwright Chromium
|
|
run: cd frontend && bunx playwright install --with-deps chromium
|
|
|
|
- name: Run visual regression
|
|
run: bun run ui:visual
|
|
|
|
- name: Upload Playwright artifacts on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: playwright-artifacts
|
|
path: |
|
|
frontend/playwright-report/
|
|
frontend/test-results/
|