Files
LexAI/.gitea/workflows/ci.yml
Forge 7f16bd886f
Some checks failed
CI — Test & Build / Test & Build (push) Failing after 1m13s
fix: rewrite workflows without GitHub marketplace actions
- Use native git clone instead of actions/checkout
- Use node:22-bookworm container directly
- Remove dependency on actions/setup-node, upload-artifact
- Use curl for Gitea API calls directly
- Fixes CI failure on self-hosted runner
2026-03-06 13:18:27 +08:00

39 lines
780 B
YAML

name: CI — Test & Build
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
test-and-build:
name: Test & Build
runs-on: ubuntu-latest
container:
image: node:22-bookworm
steps:
- name: Checkout
run: |
git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
git checkout ${{ gitea.sha }}
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run typecheck
- name: Run unit tests
run: npm test -- --run
- name: Build extension
run: npm run build
- name: Verify build output
run: |
echo "Build contents:"
ls -la .output/chrome-mv3/
echo "✅ Build successful"